mirror of https://github.com/apache/archiva.git
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:
parent
c81c17b153
commit
bf6b8b7c62
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue