equal
deleted
inserted
replaced
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('.'); |