diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java index 1ce30bcc360..f3d4d394dc7 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java @@ -433,35 +433,6 @@ private ASTNode convertMethodInAnnotationTypeDecl(JCMethodDecl javac, ASTNode pa return res; } - private String getNodeName(ASTNode node) { - if( node instanceof AbstractTypeDeclaration atd) { - return atd.getName().toString(); - } - if( node instanceof EnumDeclaration ed) { - return ed.getName().toString(); - } - return null; - } - - private String getMethodDeclName(JCMethodDecl javac, ASTNode parent) { - String name = javac.getName().toString(); - boolean javacIsConstructor = Objects.equals(javac.getName(), Names.instance(this.context).init); - if( javacIsConstructor) { - // sometimes javac mistakes a method with no return type as a constructor - String parentName = getNodeName(parent); - String tmpString1 = this.rawText.substring(javac.pos); - int openParen = tmpString1.indexOf("("); - if( openParen != -1 ) { - String methodName = tmpString1.substring(0, openParen).trim(); - if( !methodName.equals(parentName)) { - return methodName; - } - } - return parentName; - } - return name; - } - private String getNodeName(ASTNode node) { if( node instanceof AbstractTypeDeclaration atd) { return atd.getName().toString(); diff --git a/org.eclipse.jdt.core/jdtCompilerAdapter.jar b/org.eclipse.jdt.core/jdtCompilerAdapter.jar index b436019212e..588bec0840b 100644 Binary files a/org.eclipse.jdt.core/jdtCompilerAdapter.jar and b/org.eclipse.jdt.core/jdtCompilerAdapter.jar differ