Rules which enforce a specific coding style.

DuplicateJspImports

Since: PMD 3.7

Priority: Medium (3)

Avoid duplicate import statements inside JSP’s.

This rule is defined by the following Java class: net.sourceforge.pmd.lang.jsp.rule.codestyle.DuplicateJspImportsRule

Example(s):

<%@ page import=\"com.foo.MyClass,com.foo.MyClass\"%><html><body><b><img src=\"<%=Some.get()%>/foo\">xx</img>text</b></body></html>

Use this rule by referencing it:

<rule ref="category/jsp/codestyle.xml/DuplicateJspImports" />