From c94fd719e741fabf767834109619b592a9e8918a Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 6 Jul 2006 22:18:31 +0000 Subject: [PATCH] Reduce scope from public to protected in parser git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419726 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/lang/text/VariableFormatter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/commons/lang/text/VariableFormatter.java b/src/java/org/apache/commons/lang/text/VariableFormatter.java index ce096f350..bdf1a199f 100644 --- a/src/java/org/apache/commons/lang/text/VariableFormatter.java +++ b/src/java/org/apache/commons/lang/text/VariableFormatter.java @@ -187,7 +187,7 @@ protected static class VariableParser { * The token length * @return a new token */ - public static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength) { + protected static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength) { return newToken(VariableParser.ESCAPED_VAR_TOKEN, aStartIndex, aLength); } @@ -200,7 +200,7 @@ public static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength * The token length * @return a new token */ - public static FieldPosition newTextToken(int aStartIndex, int aLength) { + protected static FieldPosition newTextToken(int aStartIndex, int aLength) { return newToken(VariableParser.TEXT_TOKEN, aStartIndex, aLength); } @@ -220,7 +220,7 @@ private static FieldPosition newToken(int type, int beginIndex, int length) { * The token length * @return a new token */ - public static FieldPosition newVariableToken(int aStartIndex, int aLength) { + protected static FieldPosition newVariableToken(int aStartIndex, int aLength) { return newToken(VariableParser.VARIABLE_TOKEN, aStartIndex, aLength); } @@ -259,7 +259,7 @@ public static FieldPosition newVariableToken(int aStartIndex, int aLength) { * @param length * the length of the source data */ - public VariableParser(StrMatcher startMatcher, StrMatcher endMatcher, + protected VariableParser(StrMatcher startMatcher, StrMatcher endMatcher, StrMatcher escMatcher, int startPos, int length) { this.setVarStartMatcher(startMatcher); this.setVarEndMatcher(endMatcher); @@ -348,7 +348,7 @@ private boolean hasNext() { * the array with the source data * @return the next token or null if the end is reached */ - public FieldPosition nextToken(char[] data) { + protected FieldPosition nextToken(char[] data) { if (getTokenList().isEmpty()) { if (!hasNext()) { // end of data is reached