mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Removed redundants
This commit is contained in:
1 parent
102c4fc398
commit
0af3bdfd04
1 file changed
-18
@@ -1114,7 +1114,6 @@ public class ScriptDocument {
|
||||
paramTextPos += param.length() + 1;
|
||||
}
|
||||
|
||||
registerTypeParamInterfaceBounds(scriptType);
|
||||
}
|
||||
|
||||
private boolean isInterfaceType(TypeInfo typeInfo) {
|
||||
@@ -1123,20 +1122,6 @@ public class ScriptDocument {
|
||||
if (javaClass != null) return javaClass.isInterface();
|
||||
return false;
|
||||
}
|
||||
|
||||
private void registerTypeParamInterfaceBounds(ScriptTypeInfo scriptType) {
|
||||
for (TypeParamInfo param : scriptType.getDeclaredTypeParams()) {
|
||||
TypeInfo primaryBound = param.getBoundTypeInfo();
|
||||
if (primaryBound != null && isInterfaceType(primaryBound)) {
|
||||
scriptType.addImplementedInterface(primaryBound, primaryBound.getSimpleName());
|
||||
}
|
||||
for (TypeInfo addBound : param.getAdditionalBoundTypes()) {
|
||||
if (isInterfaceType(addBound)) {
|
||||
scriptType.addImplementedInterface(addBound, addBound.getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Split a string by a delimiter character, but only at angle-bracket depth 0.
|
||||
@@ -10744,9 +10729,6 @@ for (ScriptTypeInfo type:scriptTypes.values()) {
|
||||
addError(null, typeStart, typeEnd, err.getMessage());
|
||||
|
||||
// General error message
|
||||
if (type.getErrorMessage() != null)
|
||||
addError(null, typeStart, typeEnd, type.getErrorMessage());
|
||||
|
||||
String msg = type.getErrorMessage();
|
||||
if(msg != null && !msg.isEmpty())
|
||||
addError(null, typeStart, typeEnd, type.getErrorMessage());
|
||||
|
||||
Reference in new issue
Block a user