View Javadoc
1   /*
2   MatchXpath
3   query = //BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT[contains(@text, '{') \
4           and not(starts-with(@text, '\\nMatchXpath'))]]
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.coding.matchxpath;
10  
11  public class InputMatchXpathBlockComments {
12      /* void foo() {} */ // violation
13  
14      /* public class // violation
15          {
16              void foo2() {}
17          }
18       */
19  }