diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java index f9b5066e..b39a536a 100644 --- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java +++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java @@ -404,12 +404,11 @@ private boolean contentEquals(File referenceFile, File actualFile) throws IOExce do { refLine = referenceFileReader.readLine(); actualLine = actualFileReader.readLine(); - if ( !Objects.equals( refLine, actualLine ) ) - { - getLog().warn( "Conflict found. Reference line :" ); - getLog().warn( refLine ); - getLog().warn( "Actual line :" ); - getLog().warn( actualLine ); + if (!Objects.equals(refLine, actualLine)) { + getLog().warn("Conflict found. Reference line :"); + getLog().warn(refLine); + getLog().warn("Actual line :"); + getLog().warn(actualLine); return false; } } while (refLine != null || actualLine != null);