diff --git a/src/main/java/com/cryptomorin/xseries/reflection/XReflection.java b/src/main/java/com/cryptomorin/xseries/reflection/XReflection.java index 617dc1c3..89379d37 100644 --- a/src/main/java/com/cryptomorin/xseries/reflection/XReflection.java +++ b/src/main/java/com/cryptomorin/xseries/reflection/XReflection.java @@ -415,7 +415,6 @@ public static Class toArrayClass(Class clazz) { /** * @since v9.0.0 */ - @ApiStatus.Experimental public static MinecraftClassHandle ofMinecraft() { return new MinecraftClassHandle(new ReflectiveNamespace()); } @@ -423,7 +422,6 @@ public static MinecraftClassHandle ofMinecraft() { /** * @since v9.0.0 */ - @ApiStatus.Experimental public static DynamicClassHandle classHandle() { return new DynamicClassHandle(new ReflectiveNamespace()); } @@ -431,7 +429,6 @@ public static DynamicClassHandle classHandle() { /** * @since v11.0.0 */ - @ApiStatus.Experimental public static StaticClassHandle of(Class clazz) { return new StaticClassHandle(new ReflectiveNamespace(), clazz); } @@ -440,7 +437,6 @@ public static StaticClassHandle of(Class clazz) { /** * @since v11.0.0 */ - @ApiStatus.Experimental public static ReflectiveNamespace namespaced() { return new ReflectiveNamespace(); } @@ -449,7 +445,6 @@ public static ReflectiveNamespace namespaced() { * @since v9.0.0 */ @SafeVarargs - @ApiStatus.Experimental public static > AggregateHandle any(H... handles) { return new AggregateHandle<>(Arrays.stream(handles).map(x -> (Callable) () -> x).collect(Collectors.toList())); } @@ -458,7 +453,6 @@ public static > AggregateHandle any(H... handles) { * @since v9.0.0 */ @SafeVarargs - @ApiStatus.Experimental public static > AggregateHandle anyOf(Callable... handles) { return new AggregateHandle<>(Arrays.asList(handles)); } diff --git a/src/main/java/com/cryptomorin/xseries/reflection/jvm/ReflectiveNamespace.java b/src/main/java/com/cryptomorin/xseries/reflection/jvm/ReflectiveNamespace.java index 132ca8d9..95473417 100644 --- a/src/main/java/com/cryptomorin/xseries/reflection/jvm/ReflectiveNamespace.java +++ b/src/main/java/com/cryptomorin/xseries/reflection/jvm/ReflectiveNamespace.java @@ -11,7 +11,6 @@ import java.lang.invoke.MethodHandles; import java.util.*; -@ApiStatus.Experimental public class ReflectiveNamespace { private final Map> imports = new HashMap<>(); private final MethodHandles.Lookup lookup = MethodHandles.lookup(); @@ -50,7 +49,6 @@ public MethodHandles.Lookup getLookup() { /** * @since v11.0.0 */ - @ApiStatus.Experimental public StaticClassHandle of(Class clazz) { imports(clazz); return new StaticClassHandle(this, clazz); @@ -66,13 +64,11 @@ public void unlink(ClassHandle handle) { this.handles.remove(handle); } - @ApiStatus.Experimental public DynamicClassHandle classHandle(@Language("Java") String declaration) { DynamicClassHandle classHandle = new DynamicClassHandle(this); return new ReflectionParser(declaration).imports(this).parseClass(classHandle); } - @ApiStatus.Experimental public MinecraftClassHandle ofMinecraft(@Language("Java") String declaration) { MinecraftClassHandle classHandle = new MinecraftClassHandle(this); return new ReflectionParser(declaration).imports(this).parseClass(classHandle); diff --git a/src/main/java/com/cryptomorin/xseries/reflection/jvm/classes/ClassHandle.java b/src/main/java/com/cryptomorin/xseries/reflection/jvm/classes/ClassHandle.java index 5883c97a..a3293690 100644 --- a/src/main/java/com/cryptomorin/xseries/reflection/jvm/classes/ClassHandle.java +++ b/src/main/java/com/cryptomorin/xseries/reflection/jvm/classes/ClassHandle.java @@ -7,12 +7,10 @@ import com.cryptomorin.xseries.reflection.jvm.ReflectiveNamespace; import com.cryptomorin.xseries.reflection.parser.ReflectionParser; import org.intellij.lang.annotations.Language; -import org.jetbrains.annotations.ApiStatus; import java.util.Objects; import java.util.Set; -@ApiStatus.Experimental public abstract class ClassHandle implements Handle> { protected final ReflectiveNamespace namespace; @@ -35,7 +33,6 @@ public DynamicClassHandle inner(@Language("Java") String declaration) { return inner(namespace.classHandle(declaration)); } - @ApiStatus.Experimental public T inner(T handle) { Objects.requireNonNull(handle, "Inner handle is null"); if (this == handle) throw new IllegalArgumentException("Same instance: " + this); diff --git a/src/main/java/com/cryptomorin/xseries/reflection/minecraft/MinecraftClassHandle.java b/src/main/java/com/cryptomorin/xseries/reflection/minecraft/MinecraftClassHandle.java index 7edec8fb..cdf0ac23 100644 --- a/src/main/java/com/cryptomorin/xseries/reflection/minecraft/MinecraftClassHandle.java +++ b/src/main/java/com/cryptomorin/xseries/reflection/minecraft/MinecraftClassHandle.java @@ -5,9 +5,7 @@ import com.cryptomorin.xseries.reflection.jvm.classes.PackageHandle; import org.intellij.lang.annotations.Language; import org.intellij.lang.annotations.Pattern; -import org.jetbrains.annotations.ApiStatus; -@ApiStatus.Experimental public class MinecraftClassHandle extends DynamicClassHandle { public MinecraftClassHandle(ReflectiveNamespace namespace) { super(namespace);