diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-12-09 09:34:43 -0600 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-12-10 20:46:09 +0100 |
commit | d1fd889554bccbb50122550899dbb66b90b04f78 (patch) | |
tree | 9cad838366292ee79b77ac3513403f7489b06355 /sonar-testing-harness/src/main/java | |
parent | f86a1094588e4e47b3abf612891af0431653cd0e (diff) | |
download | sonarqube-d1fd889554bccbb50122550899dbb66b90b04f78.tar.gz sonarqube-d1fd889554bccbb50122550899dbb66b90b04f78.zip |
Fix code quality issues and reduce dependency on Guava
Diffstat (limited to 'sonar-testing-harness/src/main/java')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java b/sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java index ac797e2c067..995753269df 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java @@ -42,7 +42,7 @@ class JsonComparison { private boolean strictTimezone = false; private boolean strictArrayOrder = false; - private Set<String> ignoredFields = synchronizedSet(new HashSet<String>()); + private Set<String> ignoredFields = synchronizedSet(new HashSet<>()); boolean isStrictTimezone() { return strictTimezone; @@ -196,7 +196,7 @@ class JsonComparison { } private boolean shouldIgnoreField(Object key) { - return key instanceof String && ignoredFields.contains((String) key); + return key instanceof String && ignoredFields.contains(key); } @CheckForNull |