diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-01-30 14:01:58 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-01-30 14:01:58 +0100 |
commit | b11816776254f69a0dd7a25c32260b2d77aaa358 (patch) | |
tree | 483c9e6fd37e635c307256eaf877a70a97d86725 /sonar-db | |
parent | 97d1aafc328e6a7e7692cb75f2f85a46594a1aa7 (diff) | |
download | sonarqube-b11816776254f69a0dd7a25c32260b2d77aaa358.tar.gz sonarqube-b11816776254f69a0dd7a25c32260b2d77aaa358.zip |
Fix minor quality flaws
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/version/v50/FileSourceDto.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/version/v50/FileSourceDto.java b/sonar-db/src/main/java/org/sonar/db/version/v50/FileSourceDto.java index b69c0994713..d4135d069e6 100644 --- a/sonar-db/src/main/java/org/sonar/db/version/v50/FileSourceDto.java +++ b/sonar-db/src/main/java/org/sonar/db/version/v50/FileSourceDto.java @@ -89,7 +89,7 @@ class FileSourceDto { Map<Integer, String> duplicationsPerLine = computeDuplicationsPerLine(duplicationGroups); ByteArrayOutputStream output = new ByteArrayOutputStream(); int line = 0; - String sourceLine = null; + String sourceLine; CsvWriter csv = CsvWriter.of(new OutputStreamWriter(output, UTF_8)); StringBuilder lineHashes = new StringBuilder(); while (sourceSplitter.hasNext()) { |