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

Diff of /classpath/java/text/MessageFormat.java

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

revision 1.19 by tromey, Tue May 24 18:07:38 2005 UTC revision 1.20 by ziga, Sun Jun 12 21:32:18 2005 UTC
# Line 658  public class MessageFormat extends Forma Line 658  public class MessageFormat extends Forma
658            {            {
659              // We have a String format.  This can lose in a number              // We have a String format.  This can lose in a number
660              // of ways, but we give it a shot.              // of ways, but we give it a shot.
661              int next_index = sourceStr.indexOf(elements[i].trailer, index);              int next_index;
662                if (elements[i].trailer.length() > 0)
663                  next_index = sourceStr.indexOf(elements[i].trailer, index);
664                else
665                  next_index = sourceStr.length();
666              if (next_index == -1)              if (next_index == -1)
667                {                {
668                  pos.setErrorIndex(index);                  pos.setErrorIndex(index);

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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