Why is PMD telling me I should declare a member variable final?

View: New views
1 Messages — Rating Filter:   Alert me  

Why is PMD telling me I should declare a member variable final?

by laredotornado :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just insatlled PMD for Eclipse Galileo (Mac 10.5.6).  I have this code ...

  private static final Log LOGGER =
          LogFactory.getLog(AddressRequestFilePersisterHandler.class.getCanonicalName());

and I am getting the warning, "Logger should be defined private static final and have the correct class."  Since the above is private, static, and final, what is the correct class?  I have ...

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

as imports.

Thanks, - Dave