Skip to content

Commit b0aad2f

Browse files
eclipse-pde-botakurtakov
authored andcommitted
Perform clean code of apitools/org.eclipse.pde.api.tools.ui
1 parent 3152095 commit b0aad2f

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ public static ApiScope walkStructureSelection(IStructuredSelection structuredSel
120120
return scope;
121121
}
122122
Arrays.sort(selected, (o1, o2) -> {
123-
if (o1 instanceof IJavaElement element && o2 instanceof IJavaElement) {
124-
IJavaElement element2 = (IJavaElement) o2;
123+
if (o1 instanceof IJavaElement element && o2 instanceof IJavaElement element2) {
125124
return element.getElementType() - element2.getElementType();
126125
}
127126
return 0;

0 commit comments

Comments
 (0)