View Javadoc
1   /*
2   NoWhitespaceAfter
3   allowLineBreaks = (default)true
4   tokens = ARRAY_DECLARATOR,INDEX_OP
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.whitespace.nowhitespaceafter;
10  
11  import java.lang.annotation.ElementType;
12  import java.lang.annotation.Target;
13  
14  public class InputNoWhitespaceAfterArrayDeclarations3
15  {
16      public void testWithAnnotationInMiddle1(final char @AnnotationAfterTest [] a) {} // ok
17      public void testWithAnnotationInMiddle2(final char@AnnotationAfterTest [] a) {}//Correct
18      public void testWithAnnotationInMiddle3(final char @AnnotationAfterTest[] a) {}//Correct
19      public void testWithAnnotationInMiddle4(final char@AnnotationAfterTest[]a) {}//Correct
20      public @AnnotationAfterTest String @AnnotationAfterTest [] testWithAnnotationInMiddle5() {
21          return new @AnnotationAfterTest String @AnnotationAfterTest [3];//Correct
22      }
23  
24      @Target(ElementType.TYPE_USE)
25      @interface AnnotationAfterTest {
26      }
27  }