mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 15:47:38 +01:00
Replace Java 1.8 method with 1.7
This commit is contained in:
parent
5963628fa6
commit
ee08eb9efb
@ -1,7 +1,6 @@
|
||||
package fr.xephi.authme.initialization;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
@ -263,7 +262,7 @@ public class AuthMeServiceInitializer {
|
||||
private static void executePostConstructMethods(Object object) {
|
||||
for (Method method : object.getClass().getDeclaredMethods()) {
|
||||
if (method.isAnnotationPresent(PostConstruct.class)) {
|
||||
if (method.getParameterCount() == 0) {
|
||||
if (method.getParameterTypes().length == 0) {
|
||||
try {
|
||||
method.setAccessible(true);
|
||||
method.invoke(object);
|
||||
|
Loading…
Reference in New Issue
Block a user