Hi,

is it possible to change the visibility of constants in VariableFormatter protected. This way one could easily sub-class the VariableFormatter and write its own. The appended patch does that.

Tom
Index: 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
===================================================================
--- 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
 (revision 291638)
+++ 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
 (working copy)
@@ -465,13 +465,13 @@
     }
 
     /** Constant for the default escape character. */
-    static final char DEFAULT_ESCAPE = '$';
+    protected static final char DEFAULT_ESCAPE = '$';
 
     /** Constant for the default variable prefix. */
-    static final String DEFAULT_PREFIX = "${";
+    protected static final String DEFAULT_PREFIX = "${";
 
     /** Constant for the default variable suffix. */
-    static final String DEFAULT_SUFFIX = "}";
+    protected static final String DEFAULT_SUFFIX = "}";
 
     /**
      * Replaces the occurrences of all variables in the given source data by 
their current values obtained from the

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to