aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness
diff options
context:
space:
mode:
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) {