Bug 369202 - Compile warning in official build
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 20d5338..2b2a067 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 @@
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 6574dc0..1dff4a4 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 @@
return node.convertToProperties(new Properties(), prefix);
}
- // TODO
- //public static IPath getInstanceBaseLocation() {
- // return InstancePreferences.getBaseLocation();
- //}
+ public static IPath getInstanceBaseLocation() {
+ return InstancePreferences.getBaseLocation();
+ }
}