Skip to content

Commit

Permalink
Issue checkstyle#4313: Split and Organize Checkstyle inputs by Test f…
Browse files Browse the repository at this point in the history
…or checks in annotation package: AnnotationUseStyle
  • Loading branch information
Kietzmann committed May 4, 2017
1 parent 4063302 commit ed4ca2d
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
Expand Up @@ -42,7 +42,9 @@ public class AnnotationUseStyleCheckTest extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "annotation" + File.separator + filename);
+ "annotation" + File.separator
+ "annotationusestyle" + File.separator
+ filename);
}

/* Additional test for jacoco, since valueOf()
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks.annotation;
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
// suppress
@SuppressWarnings({})
public class InputAnnotationUseNoTrailingComma
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks.annotation;
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;


@interface SomeArrays32 {
Expand Down
@@ -0,0 +1,26 @@
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;

@MyAnnotation11 @MyAnnotation12 @MyAnnotation13
public class InputAnnotationUseStyleCustomAnnotations {

@MyAnnotation13
void method() {

}

@MyAnnotation13
@MyAnnotation12
void method2() {

}

}

@interface MyAnnotation11 {
}

@interface MyAnnotation12 {
}

@interface MyAnnotation13 {
}
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks.annotation;
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
//this file compiles in eclipse 3.4 but not with Sun's JDK 1.6.0.11

/**
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks.annotation;
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;
Expand Down
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks.annotation;
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;

@Deprecated
@SomeArrays(pooches={DOGS.LEO})
Expand Down

0 comments on commit ed4ca2d

Please sign in to comment.