You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mk...@apache.org on 2008/04/02 14:40:14 UTC

svn commit: r643878 - /maven/components/trunk/maven-model/src/main/mdo/maven.mdo

Author: mkleint
Date: Wed Apr  2 05:40:13 2008
New Revision: 643878

URL: http://svn.apache.org/viewvc?rev=643878&view=rev
Log:
MEVENIDE-618 synchronize the flushPluginMap and getPluginsAsMap to prevent NPEs in multi thread access.

Modified:
    maven/components/trunk/maven-model/src/main/mdo/maven.mdo

Modified: maven/components/trunk/maven-model/src/main/mdo/maven.mdo
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model/src/main/mdo/maven.mdo?rev=643878&r1=643877&r2=643878&view=diff
==============================================================================
--- maven/components/trunk/maven-model/src/main/mdo/maven.mdo (original)
+++ maven/components/trunk/maven-model/src/main/mdo/maven.mdo Wed Apr  2 05:40:13 2008
@@ -834,7 +834,7 @@
     /**
      * Reset the <code>pluginsMap</code> field to <code>null</code>
      */
-    public void flushPluginMap()
+    public synchronized void flushPluginMap()
     {
         this.pluginMap = null;
     }
@@ -843,7 +843,7 @@
      * @return a Map of plugins field with <code>Plugins#getKey()</code> as key
      * @see org.apache.maven.model.Plugin#getKey()
      */
-    public java.util.Map getPluginsAsMap()
+    public synchronized java.util.Map getPluginsAsMap()
     {
         if ( pluginMap == null )
         {