diff --git a/src/testinputs/com/puppycrawl/tools/checkstyle/InputRedundantThrows.java b/src/testinputs/com/puppycrawl/tools/checkstyle/InputRedundantThrows.java index 289266a30..baac597a6 100644 --- a/src/testinputs/com/puppycrawl/tools/checkstyle/InputRedundantThrows.java +++ b/src/testinputs/com/puppycrawl/tools/checkstyle/InputRedundantThrows.java @@ -1,34 +1,34 @@ -import java.io.IOException; - -public class InputRedundantThrows -{ - // wrong contains subclasses - InputRedundantThrows() - throws java.io.IOException, java.io.FileNotFoundException - { - } - - // wrong uncheck exception - void method1() - throws RuntimeException - { - } - - // wrong - duplicate - void method2() - throws IOException, java.io.IOException - { - } - - // bad - no information for checking exception - void method3() - throws WrongException - { - } - - // right - void method4() - throws IOException, ClassNotFoundException - { - } -} +import java.io.IOException; + +public class InputRedundantThrows +{ + // wrong contains subclasses + InputRedundantThrows() + throws java.io.IOException, java.io.FileNotFoundException + { + } + + // wrong uncheck exception + void method1() + throws RuntimeException + { + } + + // wrong - duplicate + void method2() + throws IOException, java.io.IOException + { + } + + // bad - no information for checking exception + void method3() + throws WrongException + { + } + + // right + void method4() + throws IOException, ClassNotFoundException + { + } +}