diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-14 09:56:19 +0200 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-14 09:56:19 +0200 |
commit | c1497e2859f2995701e7a714884a374c4a86dd76 (patch) | |
tree | ef490883150a6730db16277d5ddf34bf9ccc4e33 /src/main/java/org | |
parent | 7215a16cecd2b30eff25ae9742669ce630612d44 (diff) | |
download | sonar-scanner-cli-c1497e2859f2995701e7a714884a374c4a86dd76.tar.gz sonar-scanner-cli-c1497e2859f2995701e7a714884a374c4a86dd76.zip |
Fix violations.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/sonar/runner/Logs.java | 2 | ||||
-rw-r--r-- | src/main/java/org/sonar/runner/Runner.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/sonar/runner/Logs.java b/src/main/java/org/sonar/runner/Logs.java index 1ec8d5a..b0ad8c0 100644 --- a/src/main/java/org/sonar/runner/Logs.java +++ b/src/main/java/org/sonar/runner/Logs.java @@ -19,7 +19,7 @@ */ package org.sonar.runner; -class Logs { +final class Logs { private Logs() { } diff --git a/src/main/java/org/sonar/runner/Runner.java b/src/main/java/org/sonar/runner/Runner.java index e17face..562c15e 100644 --- a/src/main/java/org/sonar/runner/Runner.java +++ b/src/main/java/org/sonar/runner/Runner.java @@ -166,7 +166,7 @@ public final class Runner { private File initWorkDir() { String customWorkDir = properties.getProperty(PROPERTY_WORK_DIRECTORY); - if (customWorkDir == null || customWorkDir.trim().length() == 0) { + if (customWorkDir == null || "".equals(customWorkDir.trim())) { return new File(getProjectDir(), DEF_VALUE_WORK_DIRECTORY); } return defineCustomizedWorkDir(new File(customWorkDir)); |