Retarget java 8
This commit is contained in:
parent
eab6877c9e
commit
901c76a937
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ group = "dev.zontreck"
|
|||
archivesBaseName = "EventsBus"
|
||||
|
||||
java {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(8)
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
|
|
|
@ -41,12 +41,12 @@ public class Bus {
|
|||
List<Method> nonStaticMethods = Arrays.stream(clazz.getMethods())
|
||||
.filter(x -> x.isAnnotationPresent(Subscribe.class))
|
||||
.filter(x -> (x.getModifiers() & Modifier.STATIC) != Modifier.STATIC)
|
||||
.toList();
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<Method> staticMethods = Arrays.stream(clazz.getMethods())
|
||||
.filter(x -> x.isAnnotationPresent(Subscribe.class))
|
||||
.filter(x -> (x.getModifiers() & Modifier.STATIC) == Modifier.STATIC)
|
||||
.toList();
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// Register the non-static methods if applicable
|
||||
if (instance != null) {
|
||||
|
|
Loading…
Reference in a new issue