git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427059 13f79535-47bb-0310-9956-ffa450edef68tags/archiva-1.4-M4
@@ -192,7 +192,7 @@ public class ChecksummedFile | |||
String rawChecksum = FileUtils.readFileToString( checksumFile ); | |||
String expectedChecksum = parseChecksum( rawChecksum, checksumAlgorithm, referenceFile.getName() ); | |||
if ( StringUtils.equalsIgnoreCase( expectedChecksum, checksum.getChecksum() ) == false ) | |||
if ( !StringUtils.equalsIgnoreCase( expectedChecksum, checksum.getChecksum() ) ) | |||
{ | |||
valid = false; | |||
} |
@@ -601,7 +601,7 @@ public class DefaultArchivaConfiguration | |||
if ( file.getParentFile() != null ) | |||
{ | |||
// Check that directory exists | |||
if ( ( file.getParentFile().exists() == false ) || ( file.getParentFile().isDirectory() == false ) ) | |||
if ( ! file.getParentFile().isDirectory() ) | |||
{ | |||
// Directory to file must exist for file to be created | |||
return false; |
@@ -261,7 +261,7 @@ public class RepositoryContentConsumers | |||
// MRM-1212/MRM-1197 | |||
// - do not create missing/fix invalid checksums and update metadata when deploying from webdav since these are uploaded by maven | |||
if ( updateRelatedArtifacts == false ) | |||
if ( !updateRelatedArtifacts ) | |||
{ | |||
List<KnownRepositoryContentConsumer> clone = new ArrayList<KnownRepositoryContentConsumer>(); | |||
clone.addAll( selectedKnownConsumers ); |