diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 07:51:53 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 07:51:53 +0100 |
commit | 2e3b73ad771219dbe958397853e9d2842114fc56 (patch) | |
tree | e0d6dca5fcadc28b30fbad59cdbc651cc6a323b9 /sonar-plugin-api | |
parent | debb5c4828a05a05812bac2bdc430ed15f28b52d (diff) | |
download | sonarqube-2e3b73ad771219dbe958397853e9d2842114fc56.tar.gz sonarqube-2e3b73ad771219dbe958397853e9d2842114fc56.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java | 6 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java index e72bf231c8b..cfeb9b29604 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/DefaultProfiler.java @@ -36,7 +36,6 @@ class DefaultProfiler extends Profiler { private long startTime = 0L; private String startMessage = null; - private LoggerLevel startLevel = null; public DefaultProfiler(BaseLogger logger) { this.logger = logger; @@ -56,7 +55,6 @@ class DefaultProfiler extends Profiler { public Profiler start() { this.startTime = System2.INSTANCE.now(); this.startMessage = null; - this.startLevel = null; return this; } @@ -64,7 +62,6 @@ class DefaultProfiler extends Profiler { public Profiler startTrace(String message) { this.startTime = System2.INSTANCE.now(); this.startMessage = message; - this.startLevel = LoggerLevel.TRACE; StringBuilder sb = new StringBuilder(); sb.append(message); appendContext(sb); @@ -76,7 +73,6 @@ class DefaultProfiler extends Profiler { public Profiler startDebug(String message) { this.startTime = System2.INSTANCE.now(); this.startMessage = message; - this.startLevel = LoggerLevel.DEBUG; StringBuilder sb = new StringBuilder(); sb.append(message); appendContext(sb); @@ -88,7 +84,6 @@ class DefaultProfiler extends Profiler { public Profiler startInfo(String message) { this.startTime = System2.INSTANCE.now(); this.startMessage = message; - this.startLevel = LoggerLevel.INFO; StringBuilder sb = new StringBuilder(); sb.append(message); appendContext(sb); @@ -154,7 +149,6 @@ class DefaultProfiler extends Profiler { logger.log(level, sb.toString()); startTime = 0L; startMessage = null; - startLevel = null; context.clear(); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java index 3d4c8aa732c..de1727a5be8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/LogbackLogger.java @@ -29,7 +29,7 @@ import javax.annotation.Nullable; */ class LogbackLogger extends BaseLogger { - private final transient ch.qos.logback.classic.Logger logback; + private final ch.qos.logback.classic.Logger logback; LogbackLogger(ch.qos.logback.classic.Logger logback) { this.logback = logback; |