diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-05-24 12:23:45 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-05-24 16:36:20 +0200 |
commit | a3837a58d3d2f329b994dcafdb1adfed660fb25d (patch) | |
tree | 43a1fdec06025078308a57a5695724b5ded083fd /sonar-scanner-engine | |
parent | a6f424a9d02b87bab0c307d8ee128477ab56e800 (diff) | |
download | sonarqube-a3837a58d3d2f329b994dcafdb1adfed660fb25d.tar.gz sonarqube-a3837a58d3d2f329b994dcafdb1adfed660fb25d.zip |
remove usage of deprecated methods of Guava Objects
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/batch/DefaultFileLinesContext.java | 4 | ||||
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/batch/rule/QProfile.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/DefaultFileLinesContext.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/DefaultFileLinesContext.java index 85931a2be11..33b773e39c3 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/DefaultFileLinesContext.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/DefaultFileLinesContext.java @@ -19,7 +19,7 @@ */ package org.sonar.batch; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableMap; @@ -173,7 +173,7 @@ public class DefaultFileLinesContext implements FileLinesContext { @Override public String toString() { - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("map", map) .toString(); } diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/rule/QProfile.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/rule/QProfile.java index 5abc9955c7d..a0fce1c9c6b 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/rule/QProfile.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/rule/QProfile.java @@ -19,7 +19,7 @@ */ package org.sonar.batch.rule; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import java.util.Date; @@ -86,7 +86,7 @@ public class QProfile { @Override public String toString() { - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("key", key) .add("name", name) .add("language", language) |