Replace Java 1.8 method with 1.7

This commit is contained in:
ljacqu 2016-04-27 23:15:32 +02:00
parent 5963628fa6
commit ee08eb9efb

View File

@ -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);