diff --git a/src/testinputs/com/puppycrawl/tools/checkstyle/InputSemantic.java b/src/testinputs/com/puppycrawl/tools/checkstyle/InputSemantic.java index 672a3997f..34becba37 100644 --- a/src/testinputs/com/puppycrawl/tools/checkstyle/InputSemantic.java +++ b/src/testinputs/com/puppycrawl/tools/checkstyle/InputSemantic.java @@ -166,4 +166,11 @@ class InputSemantic } }; } + + public void triggerEmptyBlockWithoutBlock() + { + // an if statement without a block to increase test coverage + if (true) + return; + } }