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

Rule:  StringandStringBuffer3Checked automatically with code checker

Synopsis:Avoid calling toString() on String objects; this is unnecessary
Language:Java
Severity Level:3
Category:StringandStringBuffer


Description:
Avoid calling toString() on String objects; this is unnecessary.
public class Foo {
 private String baz() {
  String bar = "howdy";
  return bar.toString();
 }
}