DontImportSun

Avoid importing anything from the 'sun.*' packages. These packages are not portable and are likely to change.

This rule is defined by the following Java class: net.sourceforge.pmd.rules.imports.DontImportSun

Example:

                

import sun.misc.foo;
public class Foo {}