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

Rule:  StringandStringBuffer2Checked automatically with code checker

Synopsis:Avoid instantiating String objects; this is usually unnecessary
Language:Java
Severity Level:2
Category:StringandStringBuffer


Description:
Avoid instantiating String objects; this is usually unnecessary.
public class Foo {
 private String bar = new String("bar"); // just do a String bar = "bar";
}