ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant Project.java
Date Mon, 25 Aug 2003 15:29:14 GMT
bodewig     2003/08/25 08:29:14

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  remove must be synchronized, too.  Thanks Antoine
  
  Revision  Changes    Path
  1.151     +1 -1      ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.150
  retrieving revision 1.151
  diff -u -r1.150 -r1.151
  --- Project.java	25 Aug 2003 08:28:27 -0000	1.150
  +++ Project.java	25 Aug 2003 15:29:14 -0000	1.151
  @@ -387,7 +387,7 @@
        * @param listener The listener to remove from the list.
        *                 Should not be <code>null</code>.
        */
  -    public void removeBuildListener(BuildListener listener) {
  +    public synchronized void removeBuildListener(BuildListener listener) {
           // create a new Vector to avoid ConcurrentModificationExc when
           // the listeners get added/removed while we are in fire
           Vector newListeners = getBuildListeners();
  
  
  

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


Mime
View raw message