Skip to content

Commit 0bfeb26

Browse files
laeubiCopilot
andcommitted
Replace String.valueOf(true) with "true" literal
String.valueOf(true) is unnecessarily verbose and incurs a method call. A string literal is clearer and avoids unnecessary overhead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 26ee725 commit 0bfeb26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/correction/UpdateSingletonToSymbolicName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected void createChange(BundleModel model) {
4242
int ind2 = entry.indexOf(':');
4343
String invalidDir = entry.substring(ind1 + 1, ind2);
4444
((BundleSymbolicNameHeader) header).setDirective(invalidDir, null);
45-
((BundleSymbolicNameHeader) header).setDirective(Constants.SINGLETON_DIRECTIVE, String.valueOf(true));
45+
((BundleSymbolicNameHeader) header).setDirective(Constants.SINGLETON_DIRECTIVE, "true"); //$NON-NLS-1$
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)