Jtest logo




Contents  Previous  Next  Index

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


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft