View Javadoc
1   /*
2   WhitespaceAfter
3   tokens = ELLIPSIS
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespaceafter;
9   
10  import java.util.List;
11  
12  public class InputWhitespaceAfterVarargs {
13  
14      public void method(int...obj) { // violation ''...' is not followed by whitespace'
15      }
16  
17      public InputWhitespaceAfterVarargs(String first,
18             List<Integer>...second) { // violation ''...' is not followed by whitespace'
19      }
20  
21      public <T> void anoMeth(List<T>...args) { // violation ''...' is not followed by whitespace'
22      }
23  
24      public static String multipleArguments(int l, String format, Object ... args) { // ok
25          return format;
26      }
27  
28      private void noWtSpcBefore(boolean ...args) { // violation ''...' is not followed by whitespace'
29      }
30  
31      testInterface<Integer> obj = (Integer... i) -> { // ok
32      };
33  }
34  
35  @FunctionalInterface
36  interface testInterface<T> {
37      void method(T ...args); // violation ''...' is not followed by whitespace'
38  }