summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-13 04:30:21 -0700
committerSven Gothel <[email protected]>2009-10-13 04:30:21 -0700
commit130c08cce05f41bce323839077de01eac6da5ccd (patch)
treecdb2671837c379d779235556a91c29249165da7e
parent3c5fe7f58a2e7816c86ab0b85fb3a4e7cd2113ce (diff)
String isEmpty() is Java 1.6 - replaced
-rw-r--r--src/java/com/sun/gluegen/JavaEmitter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/JavaEmitter.java b/src/java/com/sun/gluegen/JavaEmitter.java
index c9a54e3..599503c 100644
--- a/src/java/com/sun/gluegen/JavaEmitter.java
+++ b/src/java/com/sun/gluegen/JavaEmitter.java
@@ -226,7 +226,7 @@ public class JavaEmitter implements GlueEmitter {
String t = scanner.next().trim();
- if(!t.isEmpty()) {
+ if(0<t.length()) {
Object type = getJavaValue2(name, t);
//fast path