Browse Source

Keep setFile atomic.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277641 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
d004597c21
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/AbstractFileSet.java

+ 1
- 1
src/main/org/apache/tools/ant/types/AbstractFileSet.java View File

@@ -210,7 +210,7 @@ public abstract class AbstractFileSet extends DataType
* @param file the single <code>File</code> included in this * @param file the single <code>File</code> included in this
* <code>AbstractFileSet</code>. * <code>AbstractFileSet</code>.
*/ */
public void setFile(File file) {
public synchronized void setFile(File file) {
if (isReference()) { if (isReference()) {
throw tooManyAttributes(); throw tooManyAttributes();
} }


Loading…
Cancel
Save