< prev index next >

jdk/src/java.base/share/classes/sun/text/normalizer/ReplaceableUCharacterIterator.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -45,11 +45,11 @@
  * an implementation, or the common state and implementation should be
  * moved up into UCharacterIterator.
  *
  * What are first, last, and getBeginIndex doing here?!?!?!
  */
-public class ReplaceableUCharacterIterator extends UCharacterIterator {
+class ReplaceableUCharacterIterator extends UCharacterIterator {
 
     // public constructor ------------------------------------------------------
 
     /**
      * Public constructor

@@ -61,11 +61,10 @@
         }
         this.replaceable  = new ReplaceableString(str);
         this.currentIndex = 0;
     }
 
-    //// for StringPrep
     /**
      * Public constructor
      * @param buf buffer of text on which the iterator will be based
      */
     public ReplaceableUCharacterIterator(StringBuffer buf){

@@ -162,11 +161,10 @@
             throw new IllegalArgumentException();
         }
         this.currentIndex = currentIndex;
     }
 
-    //// for StringPrep
     public int getText(char[] fillIn, int offset){
         int length = replaceable.length();
         if(offset < 0 || offset + length > fillIn.length){
             throw new IndexOutOfBoundsException(Integer.toString(length));
         }
< prev index next >