dgraham 2002/10/20 12:03:44 Modified: src/share/org/apache/struts/action ActionMessages.java Log: Deprecated empty in favor of isEmpty to bring ActionMessages in line with Java collections classes. Revision Changes Path 1.6 +14 -7 jakarta-struts/src/share/org/apache/struts/action/ActionMessages.java Index: ActionMessages.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionMessages.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ActionMessages.java 20 Oct 2002 18:58:55 -0000 1.5 +++ ActionMessages.java 20 Oct 2002 19:03:44 -0000 1.6 @@ -199,11 +199,18 @@ /** * Return <code>true</code> if there are no messages recorded * in this collection, or <code>false</code> otherwise. + * @deprecated Use isEmpty instead. */ public boolean empty() { - - return (messages.size() == 0); - + return (this.isEmpty()); + } + + /** + * Return <code>true</code> if there are no messages recorded + * in this collection, or <code>false</code> otherwise. + */ + public boolean isEmpty(){ + return (messages.isEmpty()); } /**
-- To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>