diff options
author | Bernd Eckenfels <bernd@eckenfels.net> | 2015-10-13 00:54:04 +0200 |
---|---|---|
committer | Bernd Eckenfels <bernd@eckenfels.net> | 2015-10-13 00:54:04 +0200 |
commit | 495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2 (patch) | |
tree | a395773563c6472b8420f592fcb242c0bd294e55 /archiva-modules/archiva-base/archiva-repository-scanner | |
parent | 5d5b0733de195c043ec8b1f733eb1788e1ea750c (diff) | |
download | archiva-495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2.tar.gz archiva-495a7bf95fa56ec7b73fca2f2e94cc7fc61f68c2.zip |
Remove Sonar Dead Store Issues.
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-scanner')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScanStatistics.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScanStatistics.java b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScanStatistics.java index d5b862b82..8e2dd8341 100644 --- a/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScanStatistics.java +++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/main/java/org/apache/archiva/repository/scanner/RepositoryScanStatistics.java @@ -97,14 +97,12 @@ public class RepositoryScanStatistics public void increaseFileCount() { - long count = getTotalFileCount(); - this.totalFileCount = ++count; + this.totalFileCount += 1; } public void increaseNewFileCount() { - long count = getNewFileCount(); - this.newFileCount = ++count; + this.newFileCount += 1; } public void setKnownConsumers( List<String> consumers ) |