mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-06 20:28:06 +02: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;
|
package fr.xephi.authme.initialization;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.base.Strings;
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
@ -263,7 +262,7 @@ public class AuthMeServiceInitializer {
|
|||||||
private static void executePostConstructMethods(Object object) {
|
private static void executePostConstructMethods(Object object) {
|
||||||
for (Method method : object.getClass().getDeclaredMethods()) {
|
for (Method method : object.getClass().getDeclaredMethods()) {
|
||||||
if (method.isAnnotationPresent(PostConstruct.class)) {
|
if (method.isAnnotationPresent(PostConstruct.class)) {
|
||||||
if (method.getParameterCount() == 0) {
|
if (method.getParameterTypes().length == 0) {
|
||||||
try {
|
try {
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
method.invoke(object);
|
method.invoke(object);
|
||||||
|
Loading…
Reference in New Issue
Block a user