Women in Technology

Hear us Roar



Article:
  Custom PMD Rules
Subject:   PMD CUSTOM XPATH RULE
Date:   2005-02-24 01:17:37
From:   PravinD
I am attempting to create a couple of PMD rules.


1) To create a rule that checks for the occurences of String objects and throws a warning if the names of the objects do not start with the letters 'str'


2) To create a rule that checks for open connection objects and throws a warning if these objects remain unclosed.


Can someone help me on this or post the xpath rule for the same?