return type is not used, method can be void
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
@@ -108,15 +108,13 @@ public class RepositoryManagementMethodPreAuthorizeAnnotatedTest {
|
|||||||
return regexIncludeInterfaceFileCollector.getInterfaceClasses();
|
return regexIncludeInterfaceFileCollector.getInterfaceClasses();
|
||||||
}
|
}
|
||||||
|
|
||||||
private File[] listFilesInPackage(final URL resource, final RegexIncludeInterfaceFileCollector clazzCollector)
|
private void listFilesInPackage(final URL resource, final RegexIncludeInterfaceFileCollector clazzCollector)
|
||||||
throws URISyntaxException {
|
throws URISyntaxException {
|
||||||
final String packagePath = new URI(resource.toString()).getPath();
|
final String packagePath = new URI(resource.toString()).getPath();
|
||||||
if (packagePath != null) {
|
if (packagePath != null) {
|
||||||
final File packageDirectory = new File(packagePath);
|
final File packageDirectory = new File(packagePath);
|
||||||
final File[] filesInPackage = packageDirectory.listFiles(clazzCollector);
|
packageDirectory.listFiles(clazzCollector);
|
||||||
return filesInPackage;
|
|
||||||
}
|
}
|
||||||
return new File[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Method getMethod(final Class<?> clazz, final String methodName, final Class<?>... parameterTypes) {
|
private static Method getMethod(final Class<?> clazz, final String methodName, final Class<?>... parameterTypes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user