Browse Source

volatile cache property

master
Matt Benson 3 years ago
parent
commit
a8779939ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/types/resources/Resources.java

+ 2
- 2
src/main/org/apache/tools/ant/types/resources/Resources.java View File

@@ -126,7 +126,7 @@ public class Resources extends DataType implements AppendableResourceCollection

private List<ResourceCollection> rc;
private Collection<Resource> coll;
private boolean cache = false;
private volatile boolean cache = false;

/**
* Create a new {@link Resources}.
@@ -148,7 +148,7 @@ public class Resources extends DataType implements AppendableResourceCollection
* @param b {@code boolean} cache flag.
* @since Ant 1.8.0
*/
public synchronized void setCache(boolean b) {
public void setCache(boolean b) {
cache = b;
}



Loading…
Cancel
Save