INTER.SB
StringBuffer should not be used in an internationalized environment
Description
This rule flags code that contains `StringBuffer'
If code contains `StringBuffer', it will not run in an internationalized environment.
Example
package INTER;
public class SB{
public void mysb(){
StringBuffer sb= new StringBuffer("hello"); // violation
sb=sb.append(" gina");
}
}
Reference
http://java.sun.com/docs/books/tutorial/i18n/intro/checklist.html
|