Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Example pmd.xml:
<?xml version="1.0" encoding="UTF-8"?>
<pmd version="3.7" timestamp="2006-11-15T10:51:57.866" elapsedTime="0s">
<file name="G:\checkout\dsms-3.0\application\client-management-application\src\main\java\com\stchome\dsms\appl\formdatasources\clientmanagement\ClientRegistryDataHelper.java">
<violation line="15" rule="UnusedImports" ruleset="Import Statement Rules" package="com.stchome.dsms.appl.formdatasources.clientmanagement" externalInfoUrl="http://pmd.sourceforge.net/rules/imports.html#UnusedImports" priority="4">
Avoid unused imports such as 'com.stchome.dsms.appl.formdatasources.clientmanagement.util.AppResource'
</violation>
</file>
</pmd>
In this case, we should just print the file name if either the package or class name is null