I donβt know of any such checks, but if you want to go this way, you either have the option presented above by VonC, or you can go a different way and look at AspectJ to report an error and / or to declare a warning.The main difference is that with AspectJ you can enforce these rules when compiling. In any case, if you are more familiar with PMD, it might be better to stay on this earth.
./Alex
alexpopescu
source share