fix[spring]: spring 6.1 LocalVariableTableParameterNameDiscoverer warning

This commit is contained in:
godotg
2024-01-15 12:54:45 +08:00
parent 8a74b46def
commit 85e8556e3e
2 changed files with 4 additions and 1 deletions
@@ -32,6 +32,9 @@ public class ProviderModule {
private String provider;
public ProviderModule() {
}
public ProviderModule(String protocolModule, String provider) {
this.protocolModule = protocolModule;
this.provider = provider;
@@ -623,7 +623,7 @@ public class ProtocolAnalysis {
checkUnsupportedType(clazz);
// 是一个协议引用变量
if (!protocolIdMap.containsKey(clazz)) {
throw new RunException("sub protocol:[{}] needs to register in protocol:[{}]", clazz.getCanonicalName(), currentProtocolClass.getCanonicalName());
throw new RunException("sub protocol:[{}] needs to register in protocol:[{}]", clazz.getSimpleName(), currentProtocolClass.getCanonicalName());
}
var protocolId = ProtocolManager.protocolId(currentProtocolClass);
var subProtocolId = ProtocolManager.protocolId(clazz);