simplify some boolean expressions

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-31 09:29:29 +00:00
parent c81c17b153
commit bf6b8b7c62
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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