aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-02-14 14:01:18 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-02-14 14:01:18 +0100
commit1bf61cf23fc4b8214f13c53958f0904e8f1b306f (patch)
treec384234074e2193442b91bd7aa2e31a45509f7da /sonar-db/src
parent36b88b81f2b17165c6a146a723cf849bb955a3c2 (diff)
downloadsonarqube-1bf61cf23fc4b8214f13c53958f0904e8f1b306f.tar.gz
sonarqube-1bf61cf23fc4b8214f13c53958f0904e8f1b306f.zip
Fix Quality flaws
Diffstat (limited to 'sonar-db/src')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/measure/ProjectMeasuresIndexerIterator.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/measure/ProjectMeasuresIndexerIterator.java b/sonar-db/src/main/java/org/sonar/db/measure/ProjectMeasuresIndexerIterator.java
index 4872441b460..f91db430d4b 100644
--- a/sonar-db/src/main/java/org/sonar/db/measure/ProjectMeasuresIndexerIterator.java
+++ b/sonar-db/src/main/java/org/sonar/db/measure/ProjectMeasuresIndexerIterator.java
@@ -240,18 +240,6 @@ public class ProjectMeasuresIndexerIterator extends CloseableIterator<ProjectMea
}
}
- private static Optional<String> getString(ResultSet rs, int index) {
- try {
- String value = rs.getString(index);
- if (!rs.wasNull()) {
- return Optional.of(value);
- }
- return Optional.empty();
- } catch (SQLException e) {
- throw new IllegalStateException("Fail to get string value", e);
- }
- }
-
public static class Project {
private final String organizationUuid;
private final String uuid;