aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-04-12 14:13:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-04-12 16:39:56 +0200
commit2f5d9eaccf74c99481b284a2a30016fe600978fc (patch)
treeec4dd3ac31ca6a1748326e3f10d77d2a3adf8045 /sonar-testing-harness
parent7b341707990b0ab9ab1c51cf19a7675af9507578 (diff)
downloadsonarqube-2f5d9eaccf74c99481b284a2a30016fe600978fc.tar.gz
sonarqube-2f5d9eaccf74c99481b284a2a30016fe600978fc.zip
Fix Quality flaws
Diffstat (limited to 'sonar-testing-harness')
-rw-r--r--sonar-testing-harness/src/main/java/org/sonar/test/JsonComparison.java7
1 files changed, 2 insertions, 5 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 af05fd103ac..c2cc0922f2b 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
@@ -175,10 +175,7 @@ class JsonComparison {
return false;
}
}
- if (!remainingActual.isEmpty()) {
- return false;
- }
- return true;
+ return remainingActual.isEmpty();
}
private boolean compareObjects(JSONObject expectedMap, JSONObject actualMap) {
@@ -203,7 +200,7 @@ class JsonComparison {
}
@CheckForNull
- static Date tryParseDate(String s) {
+ private static Date tryParseDate(String s) {
try {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse(s);
} catch (ParseException ignored) {