diff options
Diffstat (limited to 'bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java')
-rw-r--r-- | bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java index 244a8b5c7..4cbde3572 100644 --- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java +++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2014 IBM Corporation and others. + * Copyright (c) 2008, 2017 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 @@ -12,7 +12,6 @@ package org.eclipse.core.internal.net; import java.util.Date; -import org.eclipse.osgi.service.debug.DebugOptions; import org.eclipse.osgi.service.debug.DebugOptionsListener; public class Policy { @@ -22,11 +21,9 @@ public class Policy { public static boolean DEBUG_SYSTEM_PROVIDERS = false; - static final DebugOptionsListener DEBUG_OPTIONS_LISTENER = new DebugOptionsListener() { - public void optionsChanged(DebugOptions options) { - DEBUG = options.getBooleanOption(Activator.ID + "/debug", false); //$NON-NLS-1$ - DEBUG_SYSTEM_PROVIDERS = DEBUG && options.getBooleanOption(Activator.ID + "/systemproviders", false); //$NON-NLS-1$ - } + static final DebugOptionsListener DEBUG_OPTIONS_LISTENER = options -> { + DEBUG = options.getBooleanOption(Activator.ID + "/debug", false); //$NON-NLS-1$ + DEBUG_SYSTEM_PROVIDERS = DEBUG && options.getBooleanOption(Activator.ID + "/systemproviders", false); //$NON-NLS-1$ }; /** |