Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-10-07 09:39:15 +0000
committerAlexander Kurtakov2017-10-07 09:39:15 +0000
commit4d346ac2e0b41c6a0fa853ce1ec8893ce9b6b281 (patch)
tree1c9c8bc89716e0b60663cd1898414d55119716d2
parent34c6572d9f379cb3689c2cf63a9c2710cdc91e22 (diff)
downloadrt.equinox.p2-4d346ac2e0b41c6a0fa853ce1ec8893ce9b6b281.tar.gz
rt.equinox.p2-4d346ac2e0b41c6a0fa853ce1ec8893ce9b6b281.tar.xz
rt.equinox.p2-4d346ac2e0b41c6a0fa853ce1ec8893ce9b6b281.zip
Bug 525497 - Move simpleconfigurator bundles to Java 8
Convert to lambda to fix warning for missing Override annotation. Change-Id: I75b509e5afd18b5702329f191142ce1785048c67 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java b/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java
index 1fca13371..1d5f10c09 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java
@@ -409,13 +409,11 @@ class ConfigApplier {
}
final boolean[] flag = new boolean[] {false};
- FrameworkListener listener = new FrameworkListener() {
- public void frameworkEvent(FrameworkEvent event) {
- if (event.getType() == FrameworkEvent.PACKAGES_REFRESHED) {
- synchronized (flag) {
- flag[0] = true;
- flag.notifyAll();
- }
+ FrameworkListener listener = event -> {
+ if (event.getType() == FrameworkEvent.PACKAGES_REFRESHED) {
+ synchronized (flag) {
+ flag[0] = true;
+ flag.notifyAll();
}
}
};

Back to the top