Merge pull request #1834 from corda/chrisr3-muppet-fix

Fix filterAnnotationsFor() to return MethodInfo.
This commit is contained in:
Chris Rankin 2017-10-06 15:27:54 +01:00 committed by GitHub
commit 7c8a23aea6

View File

@ -286,7 +286,7 @@ public class ScanApi extends DefaultTask {
return 0; return 0;
} }
private String filterAnnotationsFor(MethodInfo method) { private MethodInfo filterAnnotationsFor(MethodInfo method) {
return new MethodInfo( return new MethodInfo(
method.getClassName(), method.getClassName(),
method.getMethodName(), method.getMethodName(),
@ -295,7 +295,7 @@ public class ScanApi extends DefaultTask {
method.getAnnotationNames().stream() method.getAnnotationNames().stream()
.filter(ScanApi::isVisibleAnnotation) .filter(ScanApi::isVisibleAnnotation)
.collect(toList()) .collect(toList())
).toString(); );
} }
} }