diff options
author | Matt Benson <mbenson@apache.org> | 2022-02-09 11:49:38 -0600 |
---|---|---|
committer | Matt Benson <mbenson@apache.org> | 2022-02-09 12:12:03 -0600 |
commit | a8779939ce44401f7069ef650412b654919feec2 (patch) | |
tree | 6c8e178858099b450561ce337c247bccab67abd8 | |
parent | 847dcd9dbe0a25a8d4cc2d0705a6047132af18d0 (diff) | |
download | ant-a8779939ce44401f7069ef650412b654919feec2.tar.gz |
volatile cache property
-rw-r--r-- | src/main/org/apache/tools/ant/types/resources/Resources.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/org/apache/tools/ant/types/resources/Resources.java b/src/main/org/apache/tools/ant/types/resources/Resources.java index 4e497e2b6..15ea73dab 100644 --- a/src/main/org/apache/tools/ant/types/resources/Resources.java +++ b/src/main/org/apache/tools/ant/types/resources/Resources.java @@ -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; } |