This commit is contained in:
@@ -144,13 +144,12 @@ public abstract class BasedHttpServlet extends HttpServlet {
|
||||
Class[] exps = method.getExceptionTypes();
|
||||
if (exps.length > 0 && (exps.length != 1 || exps[0] != IOException.class)) continue;
|
||||
//-----------------------------------------------
|
||||
String name = methodname;
|
||||
int actionid = 0;
|
||||
WebAction action = method.getAnnotation(WebAction.class);
|
||||
if (action != null) {
|
||||
actionid = action.actionid();
|
||||
name = action.url().trim();
|
||||
}
|
||||
|
||||
final WebAction action = method.getAnnotation(WebAction.class);
|
||||
if (action == null) continue;
|
||||
final int actionid = action.actionid();
|
||||
final String name = action.url().trim();
|
||||
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user