This commit is contained in:
@@ -144,13 +144,12 @@ public abstract class BasedHttpServlet extends HttpServlet {
|
|||||||
Class[] exps = method.getExceptionTypes();
|
Class[] exps = method.getExceptionTypes();
|
||||||
if (exps.length > 0 && (exps.length != 1 || exps[0] != IOException.class)) continue;
|
if (exps.length > 0 && (exps.length != 1 || exps[0] != IOException.class)) continue;
|
||||||
//-----------------------------------------------
|
//-----------------------------------------------
|
||||||
String name = methodname;
|
|
||||||
int actionid = 0;
|
final WebAction action = method.getAnnotation(WebAction.class);
|
||||||
WebAction action = method.getAnnotation(WebAction.class);
|
if (action == null) continue;
|
||||||
if (action != null) {
|
final int actionid = action.actionid();
|
||||||
actionid = action.actionid();
|
final String name = action.url().trim();
|
||||||
name = action.url().trim();
|
|
||||||
}
|
|
||||||
if (nameset.contains(name)) throw new RuntimeException(this.getClass().getSimpleName() + " has two same " + WebAction.class.getSimpleName() + "(" + name + ")");
|
if (nameset.contains(name)) throw new RuntimeException(this.getClass().getSimpleName() + " has two same " + WebAction.class.getSimpleName() + "(" + name + ")");
|
||||||
for (String n : nameset) {
|
for (String n : nameset) {
|
||||||
if (n.contains(name) || name.contains(n)) {
|
if (n.contains(name) || name.contains(n)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user