Skip to content

Commit

Permalink
Replace Java 6 methods by Java 5 compatible methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey committed Dec 15, 2011
1 parent e78fdb7 commit e74ffe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.CommonTokenStream;
import org.drools.rule.builder.dialect.java.parser.JavaLexer;
import org.drools.core.util.StringUtils;

import reactionruleml.AtomType;
import reactionruleml.IndType;
Expand Down Expand Up @@ -112,7 +113,7 @@ private JAXBElement<?> createInsert(String insert)
}

// get the properties of the relation from the java class
if (relName.isEmpty()) {
if (StringUtils.isEmpty(relName)) {
throw new IllegalStateException("The relation name is empty: "
+ relName);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.CommonTokenStream;
import org.drools.rule.builder.dialect.java.parser.JavaLexer;
import org.drools.core.util.StringUtils;

import reactionruleml.AtomType;
import reactionruleml.IndType;
Expand Down Expand Up @@ -112,7 +113,7 @@ private JAXBElement<?> createInsert(String insert)
}

// get the properties of the relation from the java class
if (relName.isEmpty()) {
if (StringUtils.isEmpty(relName)) {
throw new IllegalStateException("The relation name is empty: "
+ relName);
} else {
Expand Down

0 comments on commit e74ffe2

Please sign in to comment.