report plugin map flushing shall be synchronized to prevent NPEs in multithreaded envs.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@650807 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Milos Kleint 2008-04-23 09:28:58 +00:00
parent 5900250b45
commit 12a125bcad
1 changed files with 2 additions and 2 deletions

View File

@ -3208,7 +3208,7 @@
/**
* Reset the <code>reportPluginMap</code> field to <code>null</code>
*/
public void flushReportPluginMap()
public synchronized void flushReportPluginMap()
{
this.reportPluginMap = null;
}
@ -3217,7 +3217,7 @@
* @return a Map of plugins field with <code>ReportPlugin#getKey()</code> as key
* @see org.apache.maven.model.ReportPlugin#getKey()
*/
public java.util.Map getReportPluginsAsMap()
public synchronized java.util.Map getReportPluginsAsMap()
{
if ( reportPluginMap == null )
{