geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject cvs commit: incubator-geronimo/specs/javamail/src/java/javax/mail Folder.java
Date Thu, 04 Sep 2003 00:41:10 GMT
dblevins    2003/09/03 17:41:10

  Modified:    specs/javamail/src/java/javax/mail Folder.java
  Log:
  Patch: GERONIMO-50: Added parameter to notifyFolderListeners
  From:  Alex Blewitt
  
  Revision  Changes    Path
  1.3       +4 -5      incubator-geronimo/specs/javamail/src/java/javax/mail/Folder.java
  
  Index: Folder.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/javamail/src/java/javax/mail/Folder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Folder.java	16 Aug 2003 04:29:52 -0000	1.2
  +++ Folder.java	4 Sep 2003 00:41:10 -0000	1.3
  @@ -215,20 +215,19 @@
               event.dispatch(listener);
           }
       }
  -    protected void notifyFolderListeners(int type, Folder folder) {
  +    protected void notifyFolderListeners(int type) {
           Iterator it = _folderListeners.iterator();
  -        FolderEvent event = new FolderEvent(this, folder, type);
  +        FolderEvent event = new FolderEvent(this,this,type);
           while (it.hasNext()) {
               FolderListener listener = (FolderListener) it.next();
               event.dispatch(listener);
           }
       }
       protected void notifyFolderRenamedListeners(
  -        Folder oldFolder,
           Folder newFolder) {
           Iterator it = _folderListeners.iterator();
           FolderEvent event =
  -            new FolderEvent(this, oldFolder, newFolder, FolderEvent.RENAMED);
  +            new FolderEvent(this, this, newFolder, FolderEvent.RENAMED);
           while (it.hasNext()) {
               FolderListener listener = (FolderListener) it.next();
               event.dispatch(listener);
  
  
  

Mime
View raw message