From 86219981cb3128bf6c09c1fa0ffbce10be7442c4 Mon Sep 17 00:00:00 2001 From: alexkravin Date: Tue, 2 Dec 2014 18:38:49 +0400 Subject: [PATCH] Empty Block Check compilable UT input --- .../com/puppycrawl/tools/checkstyle/InputSemantic2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/InputSemantic2.java b/src/test/resources/com/puppycrawl/tools/checkstyle/InputSemantic2.java index 36d9db37c..e95753184 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/InputSemantic2.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/InputSemantic2.java @@ -17,7 +17,7 @@ class UpdateClass char[] s = {'1', '2'}; int index = 2; if (doSideEffect() == 1) {} //is not OK, - while ((r = in.read()) != 0) {} // is OK + while ((a = index - 1) != 0) {} // is OK for (; index < s.length && s[index] != 'x'; index++) {} // is OK if (a == 1) {} else {System.out.println("a");} // is not OK switch (a) {} //warn