This commit is contained in:
@@ -725,6 +725,7 @@ public final class Rest {
|
|||||||
|
|
||||||
RestHeader annhead = param.getAnnotation(RestHeader.class);
|
RestHeader annhead = param.getAnnotation(RestHeader.class);
|
||||||
if (annhead != null) {
|
if (annhead != null) {
|
||||||
|
if (ptype != String.class) throw new RuntimeException("@RestHeader must on String Parameter in " + method);
|
||||||
n = annhead.name();
|
n = annhead.name();
|
||||||
radix = annhead.radix();
|
radix = annhead.radix();
|
||||||
comment = annhead.comment();
|
comment = annhead.comment();
|
||||||
|
|||||||
Reference in New Issue
Block a user