shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gvanma...@apache.org
Subject svn commit: r472541 - in /shale/framework/trunk/shale-clay/src: main/java/org/apache/shale/clay/convert/StringArrayConverter.java test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java
Date Wed, 08 Nov 2006 16:48:41 GMT
Author: gvanmatre
Date: Wed Nov  8 08:48:41 2006
New Revision: 472541

URL: http://svn.apache.org/viewvc?view=rev&rev=472541
Log:
Eliminate runtime dependency to JRE 1.5 (SHALE-327).

Modified:
    shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java
    shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java

Modified: shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java?view=diff&rev=472541&r1=472540&r2=472541
==============================================================================
--- shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java
(original)
+++ shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/convert/StringArrayConverter.java
Wed Nov  8 08:48:41 2006
@@ -53,7 +53,7 @@
     /**
      * <p>The element seperator.  The default is a space.</p>
      */
-    private Character separator = Character.valueOf(' ');
+    private Character separator = new Character(' ');
 
     /**
      * @return the element begining and ending delimiter

Modified: shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java?view=diff&rev=472541&r1=472540&r2=472541
==============================================================================
--- shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java
(original)
+++ shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/convert/StringArrayConverterTestCase.java
Wed Nov  8 08:48:41 2006
@@ -68,8 +68,8 @@
     public void testCustom() {
         StringArrayConverter converter = (StringArrayConverter) facesContext.getApplication()
                                                       .createConverter(String[].class);
-        converter.setDelimiter(Character.valueOf('"'));
-        converter.setSeparator(Character.valueOf(','));
+        converter.setDelimiter(new Character('"'));
+        converter.setSeparator(new Character(','));
         
         UIComponent dummy = new HtmlInputText();
         



Mime
View raw message