return ml;
}
private void checkNonPublicMethods(final AbstractResource ar) {
final MethodList declaredMethods = new MethodList(
getDeclaredMethods(ar.getResourceClass()));
// non-public resource methods
for (AnnotatedMethod m : declaredMethods.hasMetaAnnotation(HttpMethod.class).
hasNotAnnotation(Path.class).isNotPublic()) {
issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_RES_METHOD(m.getMethod().toGenericString()), false));
}
// non-public subres methods
for (AnnotatedMethod m : declaredMethods.hasMetaAnnotation(HttpMethod.class).
hasAnnotation(Path.class).isNotPublic()) {
issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_SUB_RES_METHOD(m.getMethod().toGenericString()), false));
}
// non-public subres locators
for (AnnotatedMethod m : declaredMethods.hasNotMetaAnnotation(HttpMethod.class).
hasAnnotation(Path.class).isNotPublic()) {
issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_SUB_RES_LOC(m.getMethod().toGenericString()), false));
}
}