File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1120,7 +1120,7 @@ private static String extractMethodJavaDocSummary(IMethod method) {
11201120
11211121 // === High Priority: Mark deprecated methods ===
11221122 if (cleaned .contains ("@deprecated" )) {
1123- result .append (" [DEPRECATED]" );
1123+ result .append (result . length () > 0 ? " " : "" ). append ( " [DEPRECATED]" );
11241124 }
11251125
11261126 return result .toString ();
@@ -1298,7 +1298,7 @@ private static String extractFieldJavaDocSummary(org.eclipse.jdt.core.IField fie
12981298
12991299 // === High Priority: Mark deprecated fields ===
13001300 if (cleaned .contains ("@deprecated" )) {
1301- summary += " [DEPRECATED]" ;
1301+ summary = summary . isEmpty () ? "[DEPRECATED]" : summary + " [DEPRECATED]" ;
13021302 }
13031303
13041304 return summary ;
You can’t perform that action at this time.
0 commit comments