File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
http-generator-core/src/main/java/io/avaje/http/generator/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ private List<Element> initInterfaces() {
84
84
List <Element > interfaces = new ArrayList <>();
85
85
for (TypeMirror anInterface : beanType .getInterfaces ()) {
86
86
final Element ifaceElement = ctx .asElement (anInterface );
87
- if ((ifaceElement .getAnnotation (Path .class ) != null ) || !ifaceElement .getAnnotation (Controller .class ).value ().isBlank ()) {
87
+ if (!ifaceElement .getAnnotation (Controller .class ).value ().isBlank ()
88
+ || ifaceElement .getAnnotation (Path .class ) != null ) {
88
89
interfaces .add (ifaceElement );
89
90
}
90
91
}
@@ -256,7 +257,7 @@ public List<MethodReader> methods() {
256
257
257
258
public String path () {
258
259
259
- return Optional .ofNullable (findAnnotation (Controller .class ))
260
+ return Optional .of (findAnnotation (Controller .class ))
260
261
.map (Controller ::value )
261
262
.filter (not (String ::isBlank ))
262
263
.or (() -> Optional .ofNullable (findAnnotation (Path .class )).map (Path ::value ))
You can’t perform that action at this time.
0 commit comments