diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine.java')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine.java new file mode 100644 index 000000000..b0ea5d2de --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/indentation/InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine.java @@ -0,0 +1,20 @@ +package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 + +public class InputIndentationMethodPrecededByAnnotationWithParameterOnSeparateLine { //indent:0 exp:0 + + @interface Annotation1 { //indent:2 exp:2 + String field1(); //indent:4 exp:4 + String field2(); //indent:4 exp:4 + } //indent:2 exp:2 + + @interface Annotation2 {}; //indent:2 exp:2 + + @Annotation1(field1 = "foo", field2 = "bar") //indent:2 exp:2 + public @Annotation2 String method( //indent:2 exp:2 + String param //indent:6 exp:6 + ) { //indent:2 exp:2 + return null; //indent:4 exp:4 + } //indent:2 exp:2 + +} //indent:0 exp:0 + |