You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/02/04 22:16:02 UTC
svn commit: r740891 -
/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/LayoutUtil.java
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());