From: <cg...@us...> - 2009-07-12 18:14:38
|
Revision: 6534 http://jython.svn.sourceforge.net/jython/?rev=6534&view=rev Author: cgroves Date: 2009-07-12 18:14:32 +0000 (Sun, 12 Jul 2009) Log Message: ----------- Whoops, isEmpty is a 1.6 method Modified Paths: -------------- trunk/jython/src/org/python/core/util/StringUtil.java Modified: trunk/jython/src/org/python/core/util/StringUtil.java =================================================================== --- trunk/jython/src/org/python/core/util/StringUtil.java 2009-07-12 08:07:51 UTC (rev 6533) +++ trunk/jython/src/org/python/core/util/StringUtil.java 2009-07-12 18:14:32 UTC (rev 6534) @@ -105,7 +105,7 @@ * http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625 */ public static boolean isJavaIdentifier(String ident) { - if (ident.isEmpty() || JAVA_LITERALS.contains(ident)) { + if (ident.length() == 0 || JAVA_LITERALS.contains(ident)) { return false; } int cp = ident.codePointAt(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |