DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30893>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30893 Javadoc for Configuration.subset(String prefix) is misleading Summary: Javadoc for Configuration.subset(String prefix) is misleading Product: Commons Version: 1.0 Alpha Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Configuration AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi there, the Javadoc for the method "public Configuration subset(String prefix)" in the Interface "Configuration" is somewhat misleading. It reads: "Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix." Now, if the current Configuration does not contain any keys that start with the specified prefix, Configuration.subset does not return an empty Configuration object (which could then be tested with .isEmpty whether it contains keys at all), but null (which leads to a nice NullPointerException if you try to run .isEmpty on it.. ;-) Can you please include half a line in the Javadoc describing this behaviour? Thanks, Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]