commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/3] commons-compress git commit: looks like Sonar false positives to me
Date Sat, 24 Jun 2017 16:47:00 GMT
looks like Sonar false positives to me


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/14fbf3aa
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/14fbf3aa
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/14fbf3aa

Branch: refs/heads/master
Commit: 14fbf3aa807d987e706939c41b7386b82889f3e6
Parents: 9caad35
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sat Jun 24 18:46:19 2017 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sat Jun 24 18:46:19 2017 +0200

----------------------------------------------------------------------
 .../org/apache/commons/compress/compressors/lzma/LZMAUtils.java    | 2 +-
 .../java/org/apache/commons/compress/compressors/xz/XZUtils.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/14fbf3aa/src/main/java/org/apache/commons/compress/compressors/lzma/LZMAUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/lzma/LZMAUtils.java b/src/main/java/org/apache/commons/compress/compressors/lzma/LZMAUtils.java
index c4579ff..f3d5170 100644
--- a/src/main/java/org/apache/commons/compress/compressors/lzma/LZMAUtils.java
+++ b/src/main/java/org/apache/commons/compress/compressors/lzma/LZMAUtils.java
@@ -151,7 +151,7 @@ public class LZMAUtils {
             cachedLZMAAvailability = CachedAvailability.DONT_CACHE;
         } else if (cachedLZMAAvailability == CachedAvailability.DONT_CACHE) {
             final boolean hasLzma = internalIsLZMACompressionAvailable();
-            cachedLZMAAvailability = hasLzma ? CachedAvailability.CACHED_AVAILABLE
+            cachedLZMAAvailability = hasLzma ? CachedAvailability.CACHED_AVAILABLE // NOSONAR
                 : CachedAvailability.CACHED_UNAVAILABLE;
         }
     }

http://git-wip-us.apache.org/repos/asf/commons-compress/blob/14fbf3aa/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java b/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java
index e4e4be6..f518e3d 100644
--- a/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java
+++ b/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java
@@ -168,7 +168,7 @@ public class XZUtils {
             cachedXZAvailability = CachedAvailability.DONT_CACHE;
         } else if (cachedXZAvailability == CachedAvailability.DONT_CACHE) {
             final boolean hasXz = internalIsXZCompressionAvailable();
-            cachedXZAvailability = hasXz ? CachedAvailability.CACHED_AVAILABLE
+            cachedXZAvailability = hasXz ? CachedAvailability.CACHED_AVAILABLE // NOSONAR
                 : CachedAvailability.CACHED_UNAVAILABLE;
         }
     }


Mime
View raw message