##### For example

- Run PMD on a Sourceforge project

## J2EE Rules

### UseProperClassLoader

In J2EE getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead.

This rule is defined by the following XPath expression:

    //PrimarySuffix[@Image='getClassLoader']

Here's an example of code that would trigger this rule:

    public class Foo {
     ClassLoader cl = Bar.class.getClassLoader();
    }