From 5312d337006ad66a663f7451dc94a578b2061f79 Mon Sep 17 00:00:00 2001 From: Willem Date: Sat, 15 Oct 2022 06:23:14 +0200 Subject: [PATCH] Removed unused anno and private --- .../bassboonyd/BãßBȍőnLoad殭屍.java | 22 +++++++++---------- .../bassboonyd/info/BãßBȍőnAnnotationʸᴰ.java | 1 - 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnLoad殭屍.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnLoad殭屍.java index 681b4b61..069c91af 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnLoad殭屍.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnLoad殭屍.java @@ -13,10 +13,8 @@ import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class BãßBȍőnLoad殭屍 { - public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { - private static final BãßBȍőnSpiderʸᴰ BLACK_WIDOW = new BãßBȍőnSpiderʸᴰ(); - private static final Set> SCANNED = new LinkedHashSet<>(); - } + private static final BãßBȍőnSpiderʸᴰ BLACK_WIDOW = new BãßBȍőnSpiderʸᴰ(); + private static final Set> SCANNED = new LinkedHashSet<>(); @SafeVarargs protected static void CAST_BONE_MAGIC(BãßBȍőn boon, Consumer>...coffinFillers) { @@ -28,21 +26,21 @@ public final class BãßBȍőnLoad殭屍 { for (BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase:BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.values()) { initPrivate(phase, boon); } - initSpiderEggs(boon, bbc); - initSpiderWires(boon, bbc); + initSpiderEggs(boon); + initSpiderWires(boon); } catch (Exception e) { throw new RuntimeException(e); } } - private static void initSpiderWires(Object boon, BãßBȍőnCoffinOpenʸᴰ bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + private static void initSpiderWires(Object boon) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { //System.out.println("SCAN-BOON-FIELD: "+boon.getClass().getSimpleName()); for (Field m:boon.getClass().getDeclaredFields()) { if (!m.isAnnotationPresent(BãßBȍőnSpiderWire注.class)) { continue; } BãßBȍőnSpiderWire注 anno = m.getAnnotation(BãßBȍőnSpiderWire注.class); - SpiderSilk silkRoad = Ꝑŕḯṿª₮ḕ.BLACK_WIDOW.silkRoad(m.getType()); + SpiderSilk silkRoad = BLACK_WIDOW.silkRoad(m.getType()); Object bean = silkRoad.senseWire(boon, anno.name(), anno.description()); //System.out.println("type: "+ m.getType() +" wth name: "+anno.name()+" of boon: "+boon.getClass()); @@ -51,7 +49,7 @@ public final class BãßBȍőnLoad殭屍 { } } - private static void initSpiderEggs(BãßBȍőn boon, BãßBȍőnCoffinOpenʸᴰ bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + private static void initSpiderEggs(BãßBȍőn boon) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { for (Class interfaceClass:walkInterfaces(boon.getClass(), new LinkedHashSet<>())) { for (Class declaredClass:((Class) interfaceClass).getDeclaredClasses()) { initSpiderEggRegistrate(boon, declaredClass); @@ -66,10 +64,10 @@ public final class BãßBȍőnLoad殭屍 { if (!BãßBȍőnꝐŕḯṿª₮ḕ.class.isAssignableFrom(declaredClass)) { return; } - if (Ꝑŕḯṿª₮ḕ.SCANNED.contains(declaredClass)) { + if (SCANNED.contains(declaredClass)) { return; } - Ꝑŕḯṿª₮ḕ.SCANNED.add(declaredClass); + SCANNED.add(declaredClass); for (Method m:declaredClass.getDeclaredMethods()) { if (!m.isAnnotationPresent(BãßBȍőnSpiderEgg注.class)) { continue; @@ -77,7 +75,7 @@ public final class BãßBȍőnLoad殭屍 { //System.out.println("annoEgg: "+boon.getClass().getSimpleName()+"."+boon+" from: "+declaredClass.getName()+" m="+m.toGenericString()); m.setAccessible(true); - Ꝑŕḯṿª₮ḕ.BLACK_WIDOW.registrateEgg(m.getReturnType(), m); + BLACK_WIDOW.registrateEgg(m.getReturnType(), m); } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/info/BãßBȍőnAnnotationʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/info/BãßBȍőnAnnotationʸᴰ.java index 30262454..01564717 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/info/BãßBȍőnAnnotationʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/info/BãßBȍőnAnnotationʸᴰ.java @@ -11,7 +11,6 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhas import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnAnnotation注(optional = {BãßBȍőnPackage注.class}) public interface BãßBȍőnAnnotationʸᴰ extends BãßBȍőn { public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {