Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2012-01-20 12:10:17 +0000
committerDJ Houghton2012-01-20 12:10:17 +0000
commitb3267338367b75b35c318b51d70026ca066e0fa7 (patch)
tree232158babad8a60bdb79ba470450e0994f4e46ec /bundles/org.eclipse.equinox.preferences
parenta20fbc2f08d5e536c959b5590ce19179e708dbc4 (diff)
downloadrt.equinox.bundles-b3267338367b75b35c318b51d70026ca066e0fa7.tar.gz
rt.equinox.bundles-b3267338367b75b35c318b51d70026ca066e0fa7.tar.xz
rt.equinox.bundles-b3267338367b75b35c318b51d70026ca066e0fa7.zip
Bug 369202 - Compile warning in official buildv20120120-1210
Diffstat (limited to 'bundles/org.eclipse.equinox.preferences')
-rw-r--r--bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java4
-rw-r--r--bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/TestHelper.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
index 20d533804..2b2a0676e 100644
--- a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
+++ b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/InstancePreferences.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2009 IBM Corporation and others.
+ * Copyright (c) 2004, 2012 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
@@ -33,7 +33,7 @@ public class InstancePreferences extends EclipsePreferences {
private static boolean initialized = false;
private static IPath baseLocation;
- private static IPath getBaseLocation() {
+ /* package */static IPath getBaseLocation() {
// If we are running with -data=@none we won't have an instance location.
// By leaving the value of baseLocation as null we still allow the users
// to set preferences in this scope but the values will not be persisted
diff --git a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/TestHelper.java b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/TestHelper.java
index 6574dc006..1dff4a444 100644
--- a/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/TestHelper.java
+++ b/bundles/org.eclipse.equinox.preferences/src/org/eclipse/core/internal/preferences/TestHelper.java
@@ -11,6 +11,7 @@
package org.eclipse.core.internal.preferences;
import java.util.Properties;
+import org.eclipse.core.runtime.IPath;
import org.osgi.service.prefs.BackingStoreException;
public class TestHelper {
@@ -19,8 +20,7 @@ public class TestHelper {
return node.convertToProperties(new Properties(), prefix);
}
- // TODO
- //public static IPath getInstanceBaseLocation() {
- // return InstancePreferences.getBaseLocation();
- //}
+ public static IPath getInstanceBaseLocation() {
+ return InstancePreferences.getBaseLocation();
+ }
}

Back to the top