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-ffa450edef68
master
Robert Scholte 2012-11-04 20:50:33 +00:00
parent 96cb878188
commit 866e3c18f0
1 changed files with 1 additions and 4 deletions

View File

@ -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";