diff --git a/src/main/java/com/falsepattern/lib/DeprecationDetails.java b/src/main/java/com/falsepattern/lib/DeprecationDetails.java index dc9eb4a..dd6c9eb 100644 --- a/src/main/java/com/falsepattern/lib/DeprecationDetails.java +++ b/src/main/java/com/falsepattern/lib/DeprecationDetails.java @@ -32,8 +32,9 @@ import java.lang.annotation.RetentionPolicy; * Used together with {@link Deprecated} to specify when an API was marked stable, and when it was marked for deprecation. * Deprecated classes MAY be removed after a full deprecation cycle as described inside the {@link StableAPI} javadoc. * @since 0.10.0 + * @deprecated since 1.7.0 */ -@Deprecated(since = "1.7.0") +@Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) public @interface DeprecationDetails { @@ -50,8 +51,9 @@ public @interface DeprecationDetails { * This marks an API for removal in a future version. * * @since 0.12.0 + * @deprecated since 1.7.0 */ - @Deprecated(since = "1.7.0") + @Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) @interface RemovedInVersion { diff --git a/src/main/java/com/falsepattern/lib/StableAPI.java b/src/main/java/com/falsepattern/lib/StableAPI.java index c70d592..25ac76f 100644 --- a/src/main/java/com/falsepattern/lib/StableAPI.java +++ b/src/main/java/com/falsepattern/lib/StableAPI.java @@ -54,9 +54,10 @@ import java.lang.annotation.Target; * is highly experimental and may be removed or change at any time, however, using it in third party projects is not an * error, unlike __INTERNAL__, but if any issues arise from the usage of the API or the API changing, the API developer * shall not be blamed for it. + * @deprecated since 1.7.0 * @since 0.6.0 */ -@Deprecated(since = "1.7.0") +@Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @@ -78,9 +79,10 @@ public @interface StableAPI { * Also note that this only works for class members (methods and fields), * inner classes still need to use {@link StableAPI}. * + * @deprecated since 1.7.0 * @since 0.10.0 */ - @Deprecated(since = "1.7.0") + @Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR}) @@ -96,9 +98,10 @@ public @interface StableAPI { * Library consumers should never use class members marked with this annotation, as said members can be freely * changed or removed in any version in the library without prior notice. * + * @deprecated since 1.7.0 * @since 0.10.0 */ - @Deprecated(since = "1.7.0") + @Deprecated @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR}) diff --git a/src/main/java/com/falsepattern/lib/asm/IClassNodeTransformer.java b/src/main/java/com/falsepattern/lib/asm/IClassNodeTransformer.java index 6d88365..a5b41ff 100644 --- a/src/main/java/com/falsepattern/lib/asm/IClassNodeTransformer.java +++ b/src/main/java/com/falsepattern/lib/asm/IClassNodeTransformer.java @@ -26,8 +26,10 @@ import org.objectweb.asm.tree.ClassNode; /** * See: {@link com.falsepattern.lib.turboasm.TurboClassTransformer}. * This class will not be removed, for backwards compatibility reasons. + * + * @deprecated since 1.2.0 */ -@Deprecated(since = "1.2.0") +@Deprecated public interface IClassNodeTransformer { String getName(); diff --git a/src/main/java/com/falsepattern/lib/asm/SmartTransformer.java b/src/main/java/com/falsepattern/lib/asm/SmartTransformer.java index 5373813..ef00d02 100644 --- a/src/main/java/com/falsepattern/lib/asm/SmartTransformer.java +++ b/src/main/java/com/falsepattern/lib/asm/SmartTransformer.java @@ -36,8 +36,10 @@ import java.util.List; /** * See: {@link com.falsepattern.lib.turboasm.MergeableTurboTransformer}. * This class will not be removed, for backwards compatibility reasons. + * + * @deprecated since 1.2.0 */ -@Deprecated(since = "1.2.0") +@Deprecated public interface SmartTransformer extends IClassTransformer { Logger logger(); diff --git a/src/main/java/com/falsepattern/lib/mixin/IMixinPlugin.java b/src/main/java/com/falsepattern/lib/mixin/IMixinPlugin.java index b39b292..3628d3a 100644 --- a/src/main/java/com/falsepattern/lib/mixin/IMixinPlugin.java +++ b/src/main/java/com/falsepattern/lib/mixin/IMixinPlugin.java @@ -53,7 +53,10 @@ public interface IMixinPlugin extends IMixinConfigPlugin { return LogManager.getLogger(modName + " Mixin Loader"); } - @Deprecated(since = "1.4.0") + /** + * @deprecated since 1.4.0 + */ + @Deprecated static File findJarOf(final ITargetedMod mod) { File result = null; try (val stream = walk(MODS_DIRECTORY_PATH)) {