summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/prefs/Preferences.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/prefs/Preferences.java')
-rw-r--r--libjava/java/util/prefs/Preferences.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/libjava/java/util/prefs/Preferences.java b/libjava/java/util/prefs/Preferences.java
index 8705b77191c..af2535966be 100644
--- a/libjava/java/util/prefs/Preferences.java
+++ b/libjava/java/util/prefs/Preferences.java
@@ -238,10 +238,10 @@ public abstract class Preferences {
* @exception SecurityException when a security manager is installed and
* the caller does not have <code>RuntimePermission("preferences")</code>.
*/
- public static Preferences systemNodeForPackage(Object o)
+ public static Preferences systemNodeForPackage(Class c)
throws SecurityException
{
- return nodeForPackage(o, systemRoot());
+ return nodeForPackage(c, systemRoot());
}
/**
@@ -257,10 +257,10 @@ public abstract class Preferences {
* @exception SecurityException when a security manager is installed and
* the caller does not have <code>RuntimePermission("preferences")</code>.
*/
- public static Preferences userNodeForPackage(Object o)
+ public static Preferences userNodeForPackage(Class c)
throws SecurityException
{
- return nodeForPackage(o, userRoot());
+ return nodeForPackage(c, userRoot());
}
/**
@@ -269,9 +269,9 @@ public abstract class Preferences {
* root it returns the correct Preference node for the package node name
* of the given object.
*/
- private static Preferences nodeForPackage(Object o, Preferences root) {
+ private static Preferences nodeForPackage(Class c, Preferences root) {
// Get the package path
- String className = o.getClass().getName();
+ String className = c.getName();
String packagePath;
int index = className.lastIndexOf('.');
if(index == -1) {
OpenPOWER on IntegriCloud