jdk/src/share/classes/java/util/prefs/Preferences.java
changeset 11274 7e7196757acd
parent 10355 a976ff46116b
child 12047 320a714614e9
equal deleted inserted replaced
11139:db0c2ff5e1ea 11274:7e7196757acd
   411      * of the specified object.
   411      * of the specified object.
   412      *
   412      *
   413      * @throws IllegalArgumentException if the package has node preferences
   413      * @throws IllegalArgumentException if the package has node preferences
   414      *         node associated with it.
   414      *         node associated with it.
   415      */
   415      */
   416     private static String nodeName(Class c) {
   416     private static String nodeName(Class<?> c) {
   417         if (c.isArray())
   417         if (c.isArray())
   418             throw new IllegalArgumentException(
   418             throw new IllegalArgumentException(
   419                 "Arrays have no associated preferences node.");
   419                 "Arrays have no associated preferences node.");
   420         String className = c.getName();
   420         String className = c.getName();
   421         int pkgEndIndex = className.lastIndexOf('.');
   421         int pkgEndIndex = className.lastIndexOf('.');