jdk/src/share/classes/sun/util/locale/provider/DictionaryBasedBreakIterator.java
changeset 25522 10d789df41bb
parent 13583 dc0017b1a452
equal deleted inserted replaced
25521:80551dd1d902 25522:10d789df41bb
   459                     }
   459                     }
   460                     else {
   460                     else {
   461                         if ((currentBreakPositions.size() == 0 ||
   461                         if ((currentBreakPositions.size() == 0 ||
   462                              currentBreakPositions.peek().intValue() != text.getIndex())
   462                              currentBreakPositions.peek().intValue() != text.getIndex())
   463                             && text.getIndex() != startPos) {
   463                             && text.getIndex() != startPos) {
   464                             currentBreakPositions.push(new Integer(text.getIndex()));
   464                             currentBreakPositions.push(text.getIndex());
   465                         }
   465                         }
   466                         getNext();
   466                         getNext();
   467                         currentBreakPositions.push(new Integer(text.getIndex()));
   467                         currentBreakPositions.push(text.getIndex());
   468                     }
   468                     }
   469                 }
   469                 }
   470 
   470 
   471                 // if we still have more break positions we can try, then promote the
   471                 // if we still have more break positions we can try, then promote the
   472                 // last break in possibleBreakPositions into currentBreakPositions,
   472                 // last break in possibleBreakPositions into currentBreakPositions,