These nested if statements could be combined
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405633 13f79535-47bb-0310-9956-ffa450edef68master
parent
96cb878188
commit
866e3c18f0
|
|
@ -668,13 +668,10 @@ public class PluginReport
|
||||||
{
|
{
|
||||||
jdk = discoverJdkRequirementFromPlugins( project.getBuild().getPluginsAsMap() );
|
jdk = discoverJdkRequirementFromPlugins( project.getBuild().getPluginsAsMap() );
|
||||||
}
|
}
|
||||||
if ( jdk == null )
|
if ( jdk == null && project.getPluginManagement() != null )
|
||||||
{
|
|
||||||
if ( project.getPluginManagement() != null )
|
|
||||||
{
|
{
|
||||||
jdk = discoverJdkRequirementFromPlugins( project.getPluginManagement().getPluginsAsMap() );
|
jdk = discoverJdkRequirementFromPlugins( project.getPluginManagement().getPluginsAsMap() );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ( jdk == null )
|
if ( jdk == null )
|
||||||
{
|
{
|
||||||
jdk = "Unknown";
|
jdk = "Unknown";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue