archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk...@apache.org
Subject [1/3] git commit: sonar fixes
Date Tue, 14 Oct 2014 19:38:07 GMT
Repository: archiva
Updated Branches:
  refs/heads/master a2f7519f2 -> ea1e05551


sonar fixes

Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/81655230
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/81655230
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/81655230

Branch: refs/heads/master
Commit: 81655230ae4cc96b67ffc697bfd1da09e72ed67c
Parents: a2f7519
Author: Eric Barboni <skygo@apache.org>
Authored: Tue Oct 14 21:30:11 2014 +0200
Committer: Eric Barboni <skygo@apache.org>
Committed: Tue Oct 14 21:30:11 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/archiva/checksum/ChecksumAlgorithm.java    | 6 +++---
 .../main/java/org/apache/archiva/checksum/ChecksummedFile.java | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/81655230/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
index 18e7ec0..71f051f 100644
--- a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
+++ b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksumAlgorithm.java
@@ -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

http://git-wip-us.apache.org/repos/asf/archiva/blob/81655230/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
index 89181b5..366e16e 100644
--- a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
+++ b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java
@@ -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;
 


Mime
View raw message