mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Method declarations skip names after "new" keyword
This commit is contained in:
1 parent
ce5a67eaa2
commit
c398977022
1 file changed
+1
-1
@@ -1660,7 +1660,7 @@ public class ScriptDocument {
|
||||
// Skip class/interface/enum declarations - these look like method declarations
|
||||
// but "class Foo(" is not a method, it's a class declaration
|
||||
String returnType = m.group(1);
|
||||
if (returnType.equals("class") || returnType.equals("interface") || returnType.equals("enum")) {
|
||||
if (returnType.equals("class") || returnType.equals("interface") || returnType.equals("enum") ||returnType.equals("new")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user