aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-12 18:09:06 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-12 18:09:06 +0100
commit0a91262dbcfc955a043a9241a0efbfd67e778fea (patch)
tree983d9d19e40ca41dcdc316227de36337d08e2b59 /sonar-batch
parent06b3b224141e8519781e4a63fde38758b9e9d1c1 (diff)
downloadsonarqube-0a91262dbcfc955a043a9241a0efbfd67e778fea.tar.gz
sonarqube-0a91262dbcfc955a043a9241a0efbfd67e778fea.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileMetadata.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileMetadata.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileMetadata.java
index 6e3031a9059..1bb1a2c4b3e 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileMetadata.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileMetadata.java
@@ -62,7 +62,7 @@ public class FileMetadata implements BatchComponent {
this.analysisMode = analysisMode;
}
- private static abstract class CharHandler {
+ private abstract static class CharHandler {
void handleAll(char c) {
}
@@ -168,7 +168,7 @@ public class FileMetadata implements BatchComponent {
private static class LineHashComputer extends CharHandler {
private final MessageDigest lineMd5Digest = DigestUtils.getMd5Digest();
- private final StringBuffer sb = new StringBuffer();
+ private final StringBuilder sb = new StringBuilder();
private final LineHashConsumer consumer;
private int line = 1;