You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/05/05 21:03:47 UTC

svn commit: r941428 - /incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java

Author: scottbw
Date: Wed May  5 19:03:47 2010
New Revision: 941428

URL: http://svn.apache.org/viewvc?rev=941428&view=rev
Log:
removed unnecessary character constructor from string normalization algorithm

Modified:
    incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java

Modified: incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java?rev=941428&r1=941427&r2=941428&view=diff
==============================================================================
--- incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java (original)
+++ incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/util/UnicodeUtils.java Wed May  5 19:03:47 2010
@@ -65,7 +65,7 @@ public class UnicodeUtils {
 		for (int x=0;x<in.length();x++){
 			char ch = in.charAt(x);
 			if (Character.isSpaceChar(ch) || (Character.isWhitespace(ch) && includeWhitespace)){
-				ch = new Character(' ');
+				ch = ' ';
 			}
 			buf.append(ch);
 		}