diff options
author | Michael Koch <konqueror@gmx.de> | 2003-06-17 13:01:21 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-06-17 13:01:21 +0000 |
commit | 2a352ff13dbafd40dc1224c8a48f993d196ae433 (patch) | |
tree | 888002df60e702eb7232fc5e202ee467ac2b9123 /libjava/java/util/prefs/Preferences.java | |
parent | 12d08f3a2285d7794ea041e0b5372abf1ce7bbcd (diff) | |
download | gcc-2a352ff13dbafd40dc1224c8a48f993d196ae433.zip gcc-2a352ff13dbafd40dc1224c8a48f993d196ae433.tar.gz gcc-2a352ff13dbafd40dc1224c8a48f993d196ae433.tar.bz2 |
AbstractPreferences.java, [...]: Reworked imports, removed unused imports.
2003-06-17 Michael Koch <konqueror@gmx.de>
* java/util/prefs/AbstractPreferences.java,
java/util/prefs/PreferencesFactory.java:
Reworked imports, removed unused imports.
* java/util/prefs/Preferences.java
(systemNodeForPackage): Method takes a Class not an Object.
(userNodeForPackage): Likewise.
(nodeForPackage): Likewise.
From-SVN: r68081
Diffstat (limited to 'libjava/java/util/prefs/Preferences.java')
-rw-r--r-- | libjava/java/util/prefs/Preferences.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libjava/java/util/prefs/Preferences.java b/libjava/java/util/prefs/Preferences.java index 8705b77..af25359 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) { |