/[classpath]/classpath/java/text/NumberFormat.java
ViewVC logotype

Diff of /classpath/java/text/NumberFormat.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by glavaux, Sat Nov 22 14:55:15 2003 UTC revision 1.6 by mark, Sun Nov 23 10:49:31 2003 UTC
# Line 44  import java.util.MissingResourceExceptio Line 44  import java.util.MissingResourceExceptio
44  import java.io.ObjectInputStream;  import java.io.ObjectInputStream;
45  import java.io.ObjectOutputStream;  import java.io.ObjectOutputStream;
46  import java.io.IOException;  import java.io.IOException;
47    import java.io.InvalidObjectException;
48    
49  /**  /**
50   * This is the abstract superclass of all classes which format and   * This is the abstract superclass of all classes which format and
# Line 196  public abstract class NumberFormat exten Line 197  public abstract class NumberFormat exten
197      protected Object readResolve() throws InvalidObjectException      protected Object readResolve() throws InvalidObjectException
198      {      {
199        String s = getName();        String s = getName();
200        for (int i=0;i<allFields.length;i++)        for (int i = 0; i < allFields.length; i++)
201          if (s.equals(allFields[i].getName()))          if (s.equals(allFields[i].getName()))
202            return allFields[i];            return allFields[i];
203    
204        throw new InvalidObjectException("no such NumberFormat field called " + s);        throw new InvalidObjectException("no such NumberFormat field called "
205                                           + s);
206      }      }
207    }    }
208    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26