Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-03-28 08:57:08 +0000
committerTomasz Zarna2011-03-28 08:57:08 +0000
commite2df09074d7f0fe135ad05f7ab60a59e563b09c4 (patch)
tree265d7b303ec96b32152aed0cbd58fe6a00df8a08
parent64801cdfc1db448ca77bf054579c19fa5ce590aa (diff)
downloadeclipse.platform.team-e2df09074d7f0fe135ad05f7ab60a59e563b09c4.tar.gz
eclipse.platform.team-e2df09074d7f0fe135ad05f7ab60a59e563b09c4.tar.xz
eclipse.platform.team-e2df09074d7f0fe135ad05f7ab60a59e563b09c4.zip
Removed redundant null check
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/Utilities.java26
1 files changed, 12 insertions, 14 deletions
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/Utilities.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/Utilities.java
index ec9c67605..fe48c7219 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/Utilities.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/Utilities.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -151,19 +151,17 @@ public class Utilities {
// Legacy listeners may expect to get notified in the UI thread
Runnable runnable = new Runnable() {
public void run() {
- if (listenerList != null) {
- Object[] listeners= listenerList.getListeners();
- for (int i= 0; i < listeners.length; i++) {
- final IPropertyChangeListener listener= (IPropertyChangeListener) listeners[i];
- SafeRunner.run(new ISafeRunnable() {
- public void run() throws Exception {
- listener.propertyChange(event);
- }
- public void handleException(Throwable exception) {
- // Logged by SafeRunner
- }
- });
- }
+ Object[] listeners= listenerList.getListeners();
+ for (int i= 0; i < listeners.length; i++) {
+ final IPropertyChangeListener listener= (IPropertyChangeListener) listeners[i];
+ SafeRunner.run(new ISafeRunnable() {
+ public void run() throws Exception {
+ listener.propertyChange(event);
+ }
+ public void handleException(Throwable exception) {
+ // Logged by SafeRunner
+ }
+ });
}
}
};

Back to the top