Skip to content

Commit 36baa60

Browse files
eclipse-equinox-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.equinox.p2.ui
1 parent d0a9d67 commit 36baa60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIProvisioningListener.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ public void notify(EventObject o) {
9191
Tracing.debug(name + " Ignoring: " + o.toString()); //$NON-NLS-1$
9292
}
9393
return;
94-
} else if (o instanceof IProfileEvent && (((eventTypes & PROV_EVENT_IU) == PROV_EVENT_IU) || ((eventTypes & PROV_EVENT_PROFILE) == PROV_EVENT_PROFILE))) {
94+
} else if (o instanceof IProfileEvent event && (((eventTypes & PROV_EVENT_IU) == PROV_EVENT_IU) || ((eventTypes & PROV_EVENT_PROFILE) == PROV_EVENT_PROFILE))) {
9595
if (Tracing.DEBUG_EVENTS_CLIENT) {
9696
Tracing.debug(o.toString() + getReceiverString());
9797
}
98-
IProfileEvent event = (IProfileEvent) o;
9998
if (event.getReason() == IProfileEvent.CHANGED) {
10099
profileChanged(event.getProfileId());
101100
} else if (event.getReason() == IProfileEvent.ADDED) {

0 commit comments

Comments
 (0)