summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/net/sf/antcontrib/design/Design.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/net/sf/antcontrib/design/Design.java b/src/java/net/sf/antcontrib/design/Design.java
index a68aebe..c88db1c 100644
--- a/src/java/net/sf/antcontrib/design/Design.java
+++ b/src/java/net/sf/antcontrib/design/Design.java
@@ -227,7 +227,7 @@ public class Design {
log.log(" class="+className, Project.MSG_VERBOSE);
if(packageName.equals(Package.DEFAULT)) {
- if(className.contains(".")) {
+ if(className.indexOf('.') != -1) {
throw new RuntimeException("Internal Error");
}
} else if(!className.startsWith(currentPackageName))
@@ -327,4 +327,4 @@ public class Design {
designErrors.add(new BuildException(msg));
}
}
-} \ No newline at end of file
+}