1 /* 2 MatchXpath 3 query = //BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT[contains(@text, '\\n Forbidden comment\\n') \ 4 and not(starts-with(@text, '\\nMatchXpath'))]] 5 6 7 */ 8 9 10 package com.puppycrawl.tools.checkstyle.checks.coding.matchxpath; 11 12 public class InputMatchXpathMultilineComments { 13 14 /* // violation 15 Forbidden comment 16 Some other comment 17 */ 18 void foo1() {} 19 20 /* // violation 21 Some other comment 22 Forbidden comment 23 */ 24 void foo2() {} 25 }