Skip to content

Commit 60ce2fc

Browse files
eclipse-pde-botlaeubi
authored andcommitted
Perform clean code of apitools/org.eclipse.pde.api.tools.ui
1 parent 0d9da79 commit 60ce2fc

File tree

1 file changed

+1
-1
lines changed
  • apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/wizards

1 file changed

+1
-1
lines changed

apitools/org.eclipse.pde.api.tools.ui/src/org/eclipse/pde/api/tools/ui/internal/wizards/CompareOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected IStatus run(IProgressMonitor monitor) {
9090
description = ActionMessages.CompareWithAction_compared_against_nothing;
9191
} else if (size == 1) {
9292
Object selectedElement = this.selection.getFirstElement();
93-
String elementName = selectedElement instanceof IJavaElement ? ((IJavaElement) selectedElement).getElementName() : selectedElement.toString();
93+
String elementName = selectedElement instanceof IJavaElement i ? i.getElementName() : selectedElement.toString();
9494
description = NLS.bind(ActionMessages.CompareWithAction_compared_project_with, new Object[] {
9595
elementName,
9696
baselineName,

0 commit comments

Comments
 (0)