ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1554405 - /ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
Date Tue, 31 Dec 2013 11:50:34 GMT
Author: bodewig
Date: Tue Dec 31 11:50:34 2013
New Revision: 1554405

URL: http://svn.apache.org/r1554405
Log:
synchronize access to helpers cache - PR 37501

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java?rev=1554405&r1=1554404&r2=1554405&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Tue Dec 31 11:50:34
2013
@@ -343,7 +343,7 @@ public final class IntrospectionHelper {
      *
      * @return a helper for the specified class
      */
-    public static IntrospectionHelper getHelper(Project p, Class<?> c) {
+    public synchronized static IntrospectionHelper getHelper(Project p, Class<?> c)
{
         IntrospectionHelper ih = HELPERS.get(c.getName());
         // If a helper cannot be found, or if the helper is for another
         // classloader, create a new IH
@@ -1499,7 +1499,7 @@ public final class IntrospectionHelper {
     /**
      * Clears the static cache of on build finished.
      */
-    public static void clearCache() {
+    public synchronized static void clearCache() {
         HELPERS.clear();
     }
 



Mime
View raw message