reproduce steps:
Fill in "name"/"key"/"Description"/"Message" as "should not use Collections.synchronizedMap" , change status as "ready" , set xpathQuery as //IDENTIFIER[@tokenValue='synchronizedMap']
click "create" button
//IDENTIFIER[@tokenValue='synchronizedMap']
again As test , Javascript XPath rule doesn't work either, and just test in Sonar 4.3.1 , both Java and Javascript XPath rule works. java plugin version is 2.4
Anyone please give some suggestion or help reporting it to Sonar JIRA where I didn't have permission to report bug.
This is a known bug on SonarQube: SONAR-5575
Its fix is planned and should be available in a month or so. Feel free to vote and watch for the JIRA ticket.