myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r740891 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java
Date Wed, 04 Feb 2009 21:16:02 GMT
Author: bommel
Date: Wed Feb  4 21:16:02 2009
New Revision: 740891

URL: http://svn.apache.org/viewvc?rev=740891&view=rev
Log:
(TOBAGO-639) Optimize layout token parsing
String.isEmpty is jdk 1.6

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java?rev=740891&r1=740890&r2=740891&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java
Wed Feb  4 21:16:02 2009
@@ -282,7 +282,7 @@
 
   // XXX perhaps move to StringUtil
   public static String stripNonNumericChars(String token) {
-    if (token == null || token.isEmpty()) {
+    if (token == null || token.length() == 0) {
       return token;
     }
     StringBuilder builder = new StringBuilder(token.length());



Mime
View raw message