View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="NoWhitespaceBefore">
5         <property name="allowLineBreaks" value="true"/>
6       </module>
7     </module>
8   </module>
9   
10  
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.whitespace.nowhitespacebefore;
14  
15  import com.google.common.collect.Lists;
16  
17  // xdoc section -- start
18  class Example2 {
19    int[][] array = { { 1, 2 }
20                    , { 3, 4 } };
21    int[][] array2 = { { 1, 2 },
22                       { 3, 4 } };
23    void ellipsisExample(String ...params) {};
24    // violation above ''...' is preceded with whitespace'
25    void ellipsisExample2(String
26                            ...params) {
27      Lists.charactersOf("foo")
28           .listIterator()
29           .forEachRemaining(System.out::print);
30    };
31  }
32  // xdoc section -- end