Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2011-01-19 14:32:31 +0000
committerbvosburgh2011-01-19 14:32:31 +0000
commit7f5aeb94a0a506b4b2ae8c44f2147f1af016a440 (patch)
treef6e93f7e5e4f744a7962c9bfe69d9367bd597a07 /jpa/plugins/org.eclipse.jpt.core
parent9c7259fbf46f14c72229749a58c8f3422398dd55 (diff)
downloadwebtools.dali-7f5aeb94a0a506b4b2ae8c44f2147f1af016a440.tar.gz
webtools.dali-7f5aeb94a0a506b4b2ae8c44f2147f1af016a440.tar.xz
webtools.dali-7f5aeb94a0a506b4b2ae8c44f2147f1af016a440.zip
remove Java 6 calls: String.isEmpty()
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
index 6076fa35af..3c46701821 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
@@ -116,8 +116,8 @@ public class GenericOrmOrderable
if (orderBy != null) {
this.setSpecifiedOrderBy_(orderBy);
this.setNoOrdering_(false);
- this.setPkOrdering_(orderBy.isEmpty());
- this.setCustomOrdering_( ! orderBy.isEmpty());
+ this.setPkOrdering_(orderBy.length() == 0);
+ this.setCustomOrdering_(orderBy.length() != 0);
this.setOrderColumnOrdering_(false);
this.removeXmlOrderColumn();
@@ -219,7 +219,7 @@ public class GenericOrmOrderable
return false;
}
String xmlOrderBy = this.getXmlOrderBy();
- return (xmlOrderBy != null) && xmlOrderBy.isEmpty();
+ return (xmlOrderBy != null) && (xmlOrderBy.length() == 0);
}
@@ -263,7 +263,7 @@ public class GenericOrmOrderable
return false;
}
String xmlOrderBy = this.getXmlOrderBy();
- return (xmlOrderBy != null) && ! xmlOrderBy.isEmpty();
+ return (xmlOrderBy != null) && (xmlOrderBy.length() != 0);
}

Back to the top