Skip to content

Commit 08a9488

Browse files
eclipse-platform-botHeikoKlare
authored andcommitted
Perform clean code of resources/bundles/org.eclipse.core.resources
1 parent 56c2f63 commit 08a9488

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/events/ResourceComparator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,9 @@ public int compare(Object o1, Object o2) {
9595
if (o2 == null) {
9696
return ((ResourceInfo) o1).isSet(M_PHANTOM) ? IResourceDelta.REMOVED_PHANTOM : IResourceDelta.REMOVED;
9797
}
98-
if (!(o1 instanceof ResourceInfo oldElement && o2 instanceof ResourceInfo)) {
98+
if (!(o1 instanceof ResourceInfo oldElement && o2 instanceof ResourceInfo newElement)) {
9999
return IResourceDelta.NO_CHANGE;
100100
}
101-
ResourceInfo newElement = (ResourceInfo) o2;
102101
if (!oldElement.isSet(M_PHANTOM) && newElement.isSet(M_PHANTOM)) {
103102
return IResourceDelta.REMOVED;
104103
}

0 commit comments

Comments
 (0)