提交 372b307a 编写于 作者: K kohsuke

this is the proper way to do initialization.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2780 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5ff31c39
......@@ -228,6 +228,9 @@ public final class MavenModuleSet extends AbstractProject<MavenModuleSet,MavenMo
e.printStackTrace(); // TODO: logging
}
}
if(reporters==null)
reporters = new DescribableList<MavenReporter, Descriptor<MavenReporter>>(this);
}
/**
......@@ -370,8 +373,6 @@ public final class MavenModuleSet extends AbstractProject<MavenModuleSet,MavenMo
mavenOpts = Util.fixEmpty(req.getParameter("mavenOpts").trim());
mavenName = req.getParameter("maven_version");
if(reporters==null)
reporters = new DescribableList<MavenReporter, Descriptor<MavenReporter>>(this);
reporters.rebuild(req,MavenReporters.getConfigurableList(),"reporter");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册