commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r419726 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
Date Thu, 06 Jul 2006 22:18:32 GMT
Author: scolebourne
Date: Thu Jul  6 15:18:31 2006
New Revision: 419726

URL: http://svn.apache.org/viewvc?rev=419726&view=rev
Log:
Reduce scope from public to protected in parser

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java?rev=419726&r1=419725&r2=419726&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
Thu Jul  6 15:18:31 2006
@@ -187,7 +187,7 @@
          *            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 @@
          *            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 @@
          *            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 @@
          * @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 @@
          *            the array with the source data
          * @return the next token or <b>null</b> 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



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message