This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user