Skip to content

Commit cf2ced1

Browse files
Perform clean code of ui/org.eclipse.ui.trace
1 parent 3252c16 commit cf2ced1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingComponentComparator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public int compare(final Viewer viewer, final Object object1, final Object objec
6464
} else {
6565
result = name1.compareTo(name2);
6666
}
67-
} else if (object1 instanceof String label1 && object2 instanceof String) {
68-
String label2 = (String) object2;
67+
} else if (object1 instanceof String label1 && object2 instanceof String label2) {
6968
result = label1.compareTo(label2);
7069
}
7170
}

0 commit comments

Comments
 (0)