]> source.dussan.org Git - archiva.git/commitdiff
sonar fixes
authorEric Barboni <skygo@apache.org>
Tue, 14 Oct 2014 19:30:11 +0000 (21:30 +0200)
committerEric Barboni <skygo@apache.org>
Tue, 14 Oct 2014 19:30:11 +0000 (21:30 +0200)
archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java

index 18e7ec0237b11cc64257090ca1a1b83b7a1c7a6d..71f051f724147c34ff8daab29d7eceb80f104760 100644 (file)
@@ -50,17 +50,17 @@ public enum ChecksumAlgorithm {
     /**
      * The MessageDigest algorithm for this hash.
      */
-    private String algorithm;
+    private final String algorithm;
 
     /**
      * The file extension for this ChecksumAlgorithm.
      */
-    private String ext;
+    private final String ext;
 
     /**
      * The checksum type, the key that you see in checksum files.
      */
-    private String type;
+    private final String type;
 
     /**
      * Construct a ChecksumAlgorithm
index 89181b5fd512759128b5c902e4d6312ce900670d..366e16e0ab7ce3f24ddacf88664fdf78f680f079 100644 (file)
@@ -25,7 +25,6 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.file.Files;
@@ -52,7 +51,7 @@ import java.util.regex.Pattern;
  */
 public class ChecksummedFile
 {
-    private Logger log = LoggerFactory.getLogger( ChecksummedFile.class );
+    private final Logger log = LoggerFactory.getLogger( ChecksummedFile.class );
 
     private final File referenceFile;