diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-13 00:04:12 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-16 22:23:46 +0200 |
commit | 906087d2684c5a8308c34ef3193f4a89280bf89e (patch) | |
tree | f7e80f7021b99e05cae654ab25540ef9bf854733 /sonar-db | |
parent | ef86099046b0d6e3700f6ab23f36c9a5914506f7 (diff) | |
download | sonarqube-906087d2684c5a8308c34ef3193f4a89280bf89e.tar.gz sonarqube-906087d2684c5a8308c34ef3193f4a89280bf89e.zip |
SONAR-6716 Fix quality flaw in DatabaseVersion
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java b/sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java index 8c0af1d6b4c..8764bdaf647 100644 --- a/sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java +++ b/sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java @@ -23,6 +23,7 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import java.util.Collections; import java.util.List; +import javax.annotation.Nullable; import org.apache.ibatis.session.SqlSession; import org.sonar.db.MyBatis; @@ -89,7 +90,7 @@ public class DatabaseVersion { } @VisibleForTesting - static Status getStatus(Integer currentVersion, int lastVersion) { + static Status getStatus(@Nullable Integer currentVersion, int lastVersion) { Status status = Status.FRESH_INSTALL; if (currentVersion != null) { if (currentVersion == lastVersion) { |