From 1bf61cf23fc4b8214f13c53958f0904e8f1b306f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 14 Feb 2017 14:01:18 +0100 Subject: Fix Quality flaws --- .../org/sonar/db/measure/ProjectMeasuresIndexerIterator.java | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sonar-db/src') 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 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; -- cgit v1.2.3