Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-03-23 07:25:24 +0000
committerAlexander Kurtakov2017-03-23 07:25:24 +0000
commit93623a1a041348bd0ccec8b8d3682448d772705d (patch)
treefcb81e5003fc536bac2533d22dbdfe6000d5010a /core/org.eclipse.cdt.core/utils
parent4d47bff054d6878518127c3be7f0cb9a6f2e2455 (diff)
downloadorg.eclipse.cdt-93623a1a041348bd0ccec8b8d3682448d772705d.tar.gz
org.eclipse.cdt-93623a1a041348bd0ccec8b8d3682448d772705d.tar.xz
org.eclipse.cdt-93623a1a041348bd0ccec8b8d3682448d772705d.zip
Generify ListenerList.
Generified, some lamnda conversions and some non-javadoc removal. Change-Id: Ibf0493917ac3da7531de1ca591a9bfdc250ddf2a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'core/org.eclipse.cdt.core/utils')
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/envvar/PrefsStorableEnvironment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/envvar/PrefsStorableEnvironment.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/envvar/PrefsStorableEnvironment.java
index 5e61200c360..6aa2f11c2c2 100644
--- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/envvar/PrefsStorableEnvironment.java
+++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/envvar/PrefsStorableEnvironment.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2013 Broadcom Corporation and others.
+ * Copyright (c) 2009, 2017 Broadcom 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
@@ -74,7 +74,7 @@ public class PrefsStorableEnvironment extends StorableEnvironment {
private boolean fAppendChanged = false;
private boolean fAppendContributedChanged = false;
- private static ListenerList fEnvironmentChangeListeners = new ListenerList(ListenerList.IDENTITY);
+ private static ListenerList<IEnvironmentChangeListener> fEnvironmentChangeListeners = new ListenerList<>(ListenerList.IDENTITY);
/** A listener for changes in the backing store */
private static class PrefListener implements IPreferenceChangeListener, INodeChangeListener {
@@ -573,8 +573,8 @@ public class PrefsStorableEnvironment extends StorableEnvironment {
* @param event - the {@link IEnvironmentChangeEvent} event to be broadcast.
*/
private static void notifyLanguageSettingsChangeListeners(IEnvironmentChangeEvent event) {
- for (Object listener : fEnvironmentChangeListeners.getListeners()) {
- ((IEnvironmentChangeListener) listener).handleEvent(event);
+ for (IEnvironmentChangeListener listener : fEnvironmentChangeListeners) {
+ listener.handleEvent(event);
}
}

Back to the top