This commit is contained in:
wentch
2015-12-16 10:43:38 +08:00
parent 30bc6e420e
commit 08bdc9ec13

View File

@@ -154,7 +154,7 @@ public abstract class BasedHttpServlet extends HttpServlet {
if (nameset.contains(name)) throw new RuntimeException(this.getClass().getSimpleName() + " has two same " + WebAction.class.getSimpleName() + "(" + name + ")");
for (String n : nameset) {
if (n.contains(name) || name.contains(n)) {
throw new RuntimeException(this.getClass().getSimpleName() + " has two overlap " + WebAction.class.getSimpleName() + "(" + name + ", " + n + ")");
throw new RuntimeException(this.getClass().getSimpleName() + " has two sub-contains " + WebAction.class.getSimpleName() + "(" + name + ", " + n + ")");
}
}
nameset.add(name);