ebourg 2004/12/02 18:07:18 Modified: configuration/src/java/org/apache/commons/configuration JNDIConfiguration.java configuration/xdocs changes.xml Log: Removed the getProperties implementation in JNDIConfiguration, there was no reason to throw an UnsupportedOperationException here. addProperty has been removed as well since the implementation in AbstractConfiguration will call addPropertyDirect in JNDIConfiguration and result in the same exception. Revision Changes Path 1.23 +1 -23 jakarta-commons/configuration/src/java/org/apache/commons/configuration/JNDIConfiguration.java Index: JNDIConfiguration.java =================================================================== RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/JNDIConfiguration.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- JNDIConfiguration.java 2 Dec 2004 22:05:52 -0000 1.22 +++ JNDIConfiguration.java 3 Dec 2004 02:07:18 -0000 1.23 @@ -108,17 +108,6 @@ } /** - * <p><strong>This operation is not supported and will throw an - * UnsupportedOperationException.</strong></p> - * - * @throws UnsupportedOperationException - */ - public void addProperty(String key, Object token) - { - throw new UnsupportedOperationException("This operation is not supported"); - } - - /** * This method recursive traverse the JNDI tree, looking for Context objects. * When it finds them, it traverses them as well. Otherwise it just adds the * values to the list of keys found. @@ -274,17 +263,6 @@ } return null; - } - - /** - * <p><strong>This operation is not supported and will throw an - * UnsupportedOperationException.</strong></p> - * - * @throws UnsupportedOperationException - */ - public Properties getProperties(String key) - { - throw new UnsupportedOperationException("This operation is not supported"); } /** 1.74 +4 -0 jakarta-commons/configuration/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/jakarta-commons/configuration/xdocs/changes.xml,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- changes.xml 2 Dec 2004 22:06:21 -0000 1.73 +++ changes.xml 3 Dec 2004 02:07:18 -0000 1.74 @@ -8,6 +8,10 @@ <body> <release version="1.1-dev" date="in CVS"> + <action dev="ebourg" type="fix"> + Calling getProperties on a JNDIConfiguration no longer throws an + UnsupportedOperationException. + </action> <action dev="ebourg" type="remove"> Removed the getPropertyDirect method from AbstractConfiguration, concrete configurations now implement directly the getProperty method
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]