geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/specs/javamail/src/java/javax/mail/event ConnectionEvent.java FolderEvent.java MessageChangedEvent.java TransportEvent.java
Date Fri, 10 Oct 2003 23:43:04 GMT
adc         2003/10/10 16:43:04

  Modified:    specs/javamail/src/java/javax/mail/event
                        ConnectionEvent.java FolderEvent.java
                        MessageChangedEvent.java TransportEvent.java
  Log:
  Applied patch from GERONIMO-100
  
  Revision  Changes    Path
  1.2       +2 -2      incubator-geronimo/specs/javamail/src/java/javax/mail/event/ConnectionEvent.java
  
  Index: ConnectionEvent.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/javamail/src/java/javax/mail/event/ConnectionEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConnectionEvent.java	16 Aug 2003 01:55:48 -0000	1.1
  +++ ConnectionEvent.java	10 Oct 2003 23:43:04 -0000	1.2
  @@ -84,7 +84,7 @@
           } else if (type == CLOSED) {
               l.closed(this);
           } else {
  -            throw new RuntimeException("Unknown type " + type);
  +            throw new IllegalArgumentException("Unknown type " + type);
           }
       }
       public int getType() {
  
  
  
  1.2       +3 -3      incubator-geronimo/specs/javamail/src/java/javax/mail/event/FolderEvent.java
  
  Index: FolderEvent.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/javamail/src/java/javax/mail/event/FolderEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FolderEvent.java	16 Aug 2003 01:55:48 -0000	1.1
  +++ FolderEvent.java	10 Oct 2003 23:43:04 -0000	1.2
  @@ -59,7 +59,7 @@
   // DO NOT add / change / or delete method signatures!
   //
   package javax.mail.event;
  -import javax.mail.*;
  +import javax.mail.Folder;
   /**
    * @version $Revision$ $Date$
    */
  @@ -96,7 +96,7 @@
           } else if (type == RENAMED) {
               l.folderRenamed(this);
           } else {
  -            throw new RuntimeException("Unknown type " + type);
  +            throw new IllegalArgumentException("Unknown type " + type);
           }
       }
       public Folder getFolder() {
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/javamail/src/java/javax/mail/event/MessageChangedEvent.java
  
  Index: MessageChangedEvent.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/javamail/src/java/javax/mail/event/MessageChangedEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MessageChangedEvent.java	16 Aug 2003 01:55:48 -0000	1.1
  +++ MessageChangedEvent.java	10 Oct 2003 23:43:04 -0000	1.2
  @@ -59,7 +59,7 @@
   // DO NOT add / change / or delete method signatures!
   //
   package javax.mail.event;
  -import javax.mail.*;
  +import javax.mail.Message;
   /**
    * @version $Revision$ $Date$
    */
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/javamail/src/java/javax/mail/event/TransportEvent.java
  
  Index: TransportEvent.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/javamail/src/java/javax/mail/event/TransportEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransportEvent.java	16 Aug 2003 01:55:48 -0000	1.1
  +++ TransportEvent.java	10 Oct 2003 23:43:04 -0000	1.2
  @@ -117,7 +117,7 @@
           } else if (type == MESSAGE_PARTIALLY_DELIVERED) {
               l.messagePartiallyDelivered(this);
           } else {
  -            throw new RuntimeException("Unknown type " + type);
  +            throw new IllegalArgumentException("Unknown type " + type);
           }
       }
   }
  
  
  

Mime
View raw message