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