geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r698850 - /geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java
Date Thu, 25 Sep 2008 07:48:59 GMT
Author: jdillon
Date: Thu Sep 25 00:48:59 2008
New Revision: 698850

URL: http://svn.apache.org/viewvc?rev=698850&view=rev
Log:
Changed encode() to take any Object as its "text" to encode

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java?rev=698850&r1=698849&r2=698850&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-ansi/src/main/java/org/apache/geronimo/gshell/ansi/Renderer.java
Thu Sep 25 00:48:59 2008
@@ -118,7 +118,7 @@
         return text != null && text.indexOf(BEGIN_TOKEN) >= 0;
     }
 
-    public static String encode(final String text, final int code) {
+    public static String encode(final Object text, final int code) {
         return new StringBuffer(BEGIN_TOKEN).
                 append(Code.name(code)).
                 append(CODE_TEXT_SEPARATOR).



Mime
View raw message