Jtest logo




Contents  Previous  Next  Index

INTER.ST


StringTokenizer should not be used in an internationalized environment

Description

This rule flags code that uses 'StringTokenizer()'.

If code uses 'StringTokenizer()', it will not run in an internationalized environment.

Example

 package INTER;
 public class ST{
  public void myst(String str){
   StringTokenizer st = new StringTokenizer(str);  // violation
    int i=st.countTokens();
    }
 }

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