View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="LeftCurly"/>
5       <module name="SuppressionXpathSingleFilter">
6         <property name="checks" value="LeftCurly"/>
7         <property name="query" value="//CLASS_DEF[./IDENT[@text='Example10']]/OBJBLOCK
8               /METHOD_DEF[./IDENT[@text='testMethod1']]/SLIST"/>
9       </module>
10    </module>
11  </module>
12  */
13  
14  package com.puppycrawl.tools.checkstyle.filters.suppressionxpathsinglefilter;
15  
16  // xdoc section -- start
17  public class Example10 {
18    public void testMethod1()
19    { // filtered violation ''{' at column 3 should be on the previous line.'
20    }
21  
22    public void testMethod2()
23    { // violation, ''{' at column 3 should be on the previous line.'
24    }
25  }
26  // xdoc section -- end