TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  ImportStatement2Checked automatically with code checker

Synopsis:Avoid importing anything from the package 'java.lang'
Language:Java
Severity Level:4
Category:ImportStatement


Description:
Avoid importing anything from the package 'java.lang'. These classes are automatically imported (JLS 7.5.3).
// this is bad
import java.lang.String;
public class Foo {}

// --- in another source code file...

// this is bad
import java.lang.*;

public class Foo {}