You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14d5840
Browse filesBrowse the repository at this point in the historyBrowse files
if (!returnType.toString().equals(CanonicalNameConstants.STRING)) {
821
+
valid.invalidate();
822
+
annotationHelper.printError(enclosedElement, "The method getRootUrl must return String on a " + TargetAnnotationHelper.annotationName(Rest.class) + " annotated interface");
823
+
}
824
+
825
+
if (executableElement.getParameters().size() != 0) {
826
+
valid.invalidate();
827
+
annotationHelper.printError(enclosedElement, "The method getRootUrl cannot have parameters on a " + TargetAnnotationHelper.annotationName(Rest.class) + " annotated interface");
828
+
}
829
+
830
+
if (!foundGetRootUrlMethod) {
831
+
foundGetRootUrlMethod = true;
832
+
} else {
833
+
valid.invalidate();
834
+
annotationHelper.printError(enclosedElement, "The can be only one getRootUrl method on a " + TargetAnnotationHelper.annotationName(Rest.class) + " annotated interface");
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/rest/RestProcessor.java
0 commit comments