From 6d99d620f303df4b535954d16cc7d52f9b2de09d Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Mon, 3 Jul 2006 13:00:25 +0000 Subject: [PATCH] Fixes warnings --- .../org/eclipse/cdt/core/ICLogConstants.java | 20 ++++++++----------- .../core/PathEntryVariableManager.java | 5 +++-- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICLogConstants.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICLogConstants.java index 2adb07a5989..81c95437921 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICLogConstants.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICLogConstants.java @@ -7,6 +7,7 @@ * * Contributors: * IBM Rational Software - Initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.core; @@ -15,16 +16,11 @@ package org.eclipse.cdt.core; * @author bgheorgh */ public interface ICLogConstants { - public class LogConst{ - private LogConst( int value ) - { - this.value = value; - } - private final int value; - } - - - public static final LogConst PDE = new LogConst( 1 ); - public static final LogConst CDT = new LogConst( 2 ); - + public class LogConst { + private LogConst() { + } + } + + public static final LogConst PDE = new LogConst(); + public static final LogConst CDT = new LogConst(); } diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/PathEntryVariableManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/PathEntryVariableManager.java index c1f1de83fb6..0dd51fc88d3 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/PathEntryVariableManager.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/PathEntryVariableManager.java @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * QNX Software Systems - Initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.core; @@ -26,8 +27,8 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.ISafeRunnable; import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Preferences; +import org.eclipse.core.runtime.SafeRunner; @@ -149,7 +150,7 @@ public class PathEntryVariableManager implements IPathEntryVariableManager { l.pathVariableChanged(pve); } }; - Platform.run(job); + SafeRunner.run(job); } }