From bd1f2adad7382cc976a38dcfc4043099e8df9141 Mon Sep 17 00:00:00 2001 From: Rob Stryker Date: Tue, 5 Dec 2023 16:41:04 -0500 Subject: [PATCH] Fix some compilation errors Signed-off-by: Rob Stryker --- src/eclipseAgent/lombok/launch/PatchFixesHider.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/eclipseAgent/lombok/launch/PatchFixesHider.java b/src/eclipseAgent/lombok/launch/PatchFixesHider.java index 1a42f18a..46bb59ec 100755 --- a/src/eclipseAgent/lombok/launch/PatchFixesHider.java +++ b/src/eclipseAgent/lombok/launch/PatchFixesHider.java @@ -433,11 +433,8 @@ final class PatchFixesHider { static { Class shadowed = Util.shadowLoadClass("lombok.eclipse.agent.PatchJavadoc"); GET_HTML = Util.findMethod(shadowed, "getHTMLContentFromSource", String.class, Object.class); - try { - PRINT_METHOD_NEW = Util.findMethod(shadowed, "printMethod", AbstractMethodDeclaration.class, Integer.class, StringBuilder.class, TypeDeclaration.class); - } catch( RuntimeException e ) { - PRINT_METHOD_OLD = Util.findMethod(shadowed, "printMethod", AbstractMethodDeclaration.class, Integer.class, StringBuffer.class, TypeDeclaration.class); - } + PRINT_METHOD_NEW = Util.findMethod(shadowed, "printMethod", AbstractMethodDeclaration.class, Integer.class, StringBuilder.class, TypeDeclaration.class); + PRINT_METHOD_OLD = Util.findMethod(shadowed, "printMethod", AbstractMethodDeclaration.class, Integer.class, StringBuffer.class, TypeDeclaration.class); } public static String getHTMLContentFromSource(String original, IJavaElement member) { @@ -985,7 +982,7 @@ final class PatchFixesHider { return (method.bits & IsCanonicalConstructor) != 0 && (method.bits & IsImplicit) != 0; } - public static StringBuilder returnStringBuffer(Object p1, StringBuffer buffer) { + public static StringBuffer returnStringBuffer(Object p1, StringBuffer buffer) { return buffer; }