diff --git a/annotations/src/io/anuke/annotations/RemoteMethodAnnotationProcessor.java b/annotations/src/io/anuke/annotations/RemoteMethodAnnotationProcessor.java index aed3f7568a..9635bf4226 100644 --- a/annotations/src/io/anuke/annotations/RemoteMethodAnnotationProcessor.java +++ b/annotations/src/io/anuke/annotations/RemoteMethodAnnotationProcessor.java @@ -88,7 +88,7 @@ public class RemoteMethodAnnotationProcessor extends AbstractProcessor { orderedElements.sort(Comparator.comparing(Object::toString)); //create methods - for (Element element : elements) { + for (Element element : orderedElements) { Remote annotation = element.getAnnotation(Remote.class); //check for static