commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources MessageList.java
Date Sat, 19 Apr 2003 18:46:43 GMT
dgraham     2003/04/19 11:46:43

  Modified:    resources/src/java/org/apache/commons/resources/impl
                        BasicMessageList.java
               resources/src/java/org/apache/commons/resources
                        MessageList.java
  Log:
  Removed deprecated empty() method.  This was brought over from Struts
  where it's already deprecated so it's senseless to start commons-resources
  with the deprecated method.
  
  Revision  Changes    Path
  1.4       +7 -13     jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/BasicMessageList.java
  
  Index: BasicMessageList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/BasicMessageList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BasicMessageList.java	6 Mar 2003 03:24:25 -0000	1.3
  +++ BasicMessageList.java	19 Apr 2003 18:46:43 -0000	1.4
  @@ -203,14 +203,7 @@
   
       // See interface for JavaDoc
       public void clear() {
  -
           messages.clear();
  -
  -    }
  -
  -    // See interface for JavaDoc
  -    public boolean empty() {
  -        return (this.isEmpty());
       }
   
       // See interface for JavaDoc
  @@ -291,10 +284,11 @@
   
           MessageItem ami = (MessageItem) messages.get(property);
   
  -        if (ami == null)
  +        if (ami == null) {
               return (0);
  -        else
  +        } else {
               return (ami.getList().size());
  +        }
   
       }
   
  
  
  
  1.3       +4 -11     jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/MessageList.java
  
  Index: MessageList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/MessageList.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageList.java	6 Mar 2003 03:24:25 -0000	1.2
  +++ MessageList.java	19 Apr 2003 18:46:43 -0000	1.3
  @@ -149,13 +149,6 @@
       /**
        * 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 <code>true</code> if there are no messages recorded
  -     * in this collection, or <code>false</code> otherwise.
        */
       public boolean isEmpty();
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message