From e7d7ea3a793e29652b3c7510b1d4e3f107164230 Mon Sep 17 00:00:00 2001 From: David RACODON Date: Sat, 23 Jul 2016 10:09:28 +0200 Subject: [PATCH] Fix qality flaws --- .../main/java/org/sonar/json/checks/verifier/CheckVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-checks-testkit/src/main/java/org/sonar/json/checks/verifier/CheckVerifier.java b/json-checks-testkit/src/main/java/org/sonar/json/checks/verifier/CheckVerifier.java index d495370..4fad1ef 100644 --- a/json-checks-testkit/src/main/java/org/sonar/json/checks/verifier/CheckVerifier.java +++ b/json-checks-testkit/src/main/java/org/sonar/json/checks/verifier/CheckVerifier.java @@ -139,7 +139,7 @@ public CheckVerifier withSecondaryLines(int... expectedLines) { Collections.sort(current.secondaryLines()); Arrays.sort(expectedLines); - int i = 0; + int i; for (i = 0; i < expectedLines.length; i++) { if (current.secondaryLines().size() <= i) { throw new AssertionError("\nMissing secondary location at line " + expectedLines[i]);