diff --git a/api/maven-api-metadata/src/main/mdo/metadata.mdo b/api/maven-api-metadata/src/main/mdo/metadata.mdo index 509e51aeb9..fe9436046e 100644 --- a/api/maven-api-metadata/src/main/mdo/metadata.mdo +++ b/api/maven-api-metadata/src/main/mdo/metadata.mdo @@ -100,7 +100,7 @@ under the License. for ( Plugin preExisting : getPlugins() ) { - if ( preExisting.getPrefix().equals( plugin.getPrefix() ) ) + if ( java.util.Objects.equals( preExisting.getPrefix(), plugin.getPrefix() ) ) { found = true; break;