This commit is contained in:
Redkale
2017-06-12 14:43:32 +08:00
parent 2d6cefeb43
commit 7081f94afc

View File

@@ -1671,10 +1671,10 @@ public final class Rest {
if (mapping == null) mapping = DEFAULT__MAPPING; if (mapping == null) mapping = DEFAULT__MAPPING;
this.methodidx = methodidx; this.methodidx = methodidx;
this.ignore = mapping.ignore(); this.ignore = mapping.ignore();
String n = mapping.name().toLowerCase(); String n = mapping.name();
if (n.isEmpty()) { if (n.isEmpty()) {
String t = method.getName().toLowerCase(); String t = method.getName();
int pos = t.indexOf(defmodulename.toLowerCase()); int pos = t.indexOf(defmodulename);
n = pos > 0 ? t.substring(0, pos) : t; n = pos > 0 ? t.substring(0, pos) : t;
} }
this.name = n; this.name = n;