taylor 2004/11/12 11:36:08 Modified: taglibs/treecontrol/src/java/org/apache/webapp/admin TreeControl.java Log: put unique check back in Revision Changes Path 1.3 +4 -4 jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControl.java Index: TreeControl.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TreeControl.java 11 Nov 2004 19:22:56 -0000 1.2 +++ TreeControl.java 12 Nov 2004 19:36:08 -0000 1.3 @@ -167,9 +167,9 @@ synchronized (registry) { String name = node.getName(); - //if (registry.containsKey(name)) - //throw new IllegalArgumentException("Name '" + name + - // "' is not unique"); + if (registry.containsKey(name)) + throw new IllegalArgumentException("Name '" + name + + "' is not unique"); node.setTree(this); registry.put(name, node); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]