src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java
changeset 55263 830ca7b43b95
parent 53227 f15d443f9731
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java	Thu Jun 06 12:24:44 2019 -0300
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java	Thu Jun 06 12:24:44 2019 -0300
@@ -154,6 +154,21 @@
         return new String(sbuf, 0, sp);
     }
 
+    /** Add 'count' copies of the character 'ch' to the string buffer.
+     */
+    protected void repeat(char ch, int count) {
+        for ( ; 0 < count; count--) {
+            putChar(ch, false);
+        }
+    }
+
+    /** Reset the scan buffer pointer to 'pos'.
+     */
+    protected void reset(int pos) {
+        bp = pos - 1;
+        scanChar();
+    }
+
     /** Convert unicode escape; bp points to initial '\' character
      *  (Spec 3.3).
      */