mirror of https://github.com/apache/maven.git
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:
parent
5900250b45
commit
12a125bcad
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue