Pattern: Import from illegal package
Issue: -
Avoid importing from package that contains internal APIs: they are subject to change in a undocumented or unsupported way and they are bound to a specific JRE/JDK (e.g. Sun), limiting portability of your programs.
Prefer a public, documented and specified class instead.
Name | Description | Type | Default Value |
---|---|---|---|
illegalImports | Illegal Imports | string | sun._,java.awt._ |
<check enabled="true" class="org.scalastyle.scalariform.IllegalImportsChecker" level="warning"/>