View Javadoc
1   /*
2   WhitespaceAround
3   allowEmptyConstructors = (default)false
4   allowEmptyMethods = (default)false
5   allowEmptyTypes = (default)false
6   allowEmptyLoops = (default)false
7   allowEmptyLambdas = (default)false
8   allowEmptyCatches = (default)false
9   ignoreEnhancedForColon = (default)true
10  tokens = ELLIPSIS
11  
12  
13  */
14  
15  package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespacearound;
16  
17  class InputWhitespaceAroundVarargs
18  {
19      public void main0(String... args) { } // violation ''...' is not preceded with whitespace'
20      public static void main1(String ...args) { } // violation ''...' is not followed by whitespace'
21      public static void main2(String...args) { } // 2 violations
22      public static void main3(String ... args) { }
23      public void varargs(int...arr) { } // 2 violations
24      public void doubleValue(int a, int...b) { } // 2 violations
25  
26  }