Skip to content

Commit 09696b5

Browse files
committed
move deprecated since to javadoc (java 8 moment)
1 parent ee32848 commit 09696b5

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

src/main/java/com/falsepattern/lib/DeprecationDetails.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
* Used together with {@link Deprecated} to specify when an API was marked stable, and when it was marked for deprecation.
3333
* Deprecated classes MAY be removed after a full deprecation cycle as described inside the {@link StableAPI} javadoc.
3434
* @since 0.10.0
35+
* @deprecated since 1.7.0
3536
*/
36-
@Deprecated(since = "1.7.0")
37+
@Deprecated
3738
@Documented
3839
@Retention(RetentionPolicy.RUNTIME)
3940
public @interface DeprecationDetails {
@@ -50,8 +51,9 @@
5051
* This marks an API for removal in a future version.
5152
*
5253
* @since 0.12.0
54+
* @deprecated since 1.7.0
5355
*/
54-
@Deprecated(since = "1.7.0")
56+
@Deprecated
5557
@Documented
5658
@Retention(RetentionPolicy.RUNTIME)
5759
@interface RemovedInVersion {

src/main/java/com/falsepattern/lib/StableAPI.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@
5454
* is highly experimental and may be removed or change at any time, however, using it in third party projects is not an
5555
* error, unlike __INTERNAL__, but if any issues arise from the usage of the API or the API changing, the API developer
5656
* shall not be blamed for it.
57+
* @deprecated since 1.7.0
5758
* @since 0.6.0
5859
*/
59-
@Deprecated(since = "1.7.0")
60+
@Deprecated
6061
@Documented
6162
@Retention(RetentionPolicy.RUNTIME)
6263
@Target(ElementType.TYPE)
@@ -78,9 +79,10 @@
7879
* Also note that this only works for class members (methods and fields),
7980
* inner classes still need to use {@link StableAPI}.
8081
*
82+
* @deprecated since 1.7.0
8183
* @since 0.10.0
8284
*/
83-
@Deprecated(since = "1.7.0")
85+
@Deprecated
8486
@Documented
8587
@Retention(RetentionPolicy.RUNTIME)
8688
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
@@ -96,9 +98,10 @@
9698
* Library consumers should never use class members marked with this annotation, as said members can be freely
9799
* changed or removed in any version in the library without prior notice.
98100
*
101+
* @deprecated since 1.7.0
99102
* @since 0.10.0
100103
*/
101-
@Deprecated(since = "1.7.0")
104+
@Deprecated
102105
@Documented
103106
@Retention(RetentionPolicy.RUNTIME)
104107
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})

src/main/java/com/falsepattern/lib/asm/IClassNodeTransformer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
/**
2727
* See: {@link com.falsepattern.lib.turboasm.TurboClassTransformer}.
2828
* This class will not be removed, for backwards compatibility reasons.
29+
*
30+
* @deprecated since 1.2.0
2931
*/
30-
@Deprecated(since = "1.2.0")
32+
@Deprecated
3133
public interface IClassNodeTransformer {
3234
String getName();
3335

src/main/java/com/falsepattern/lib/asm/SmartTransformer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@
3636
/**
3737
* See: {@link com.falsepattern.lib.turboasm.MergeableTurboTransformer}.
3838
* This class will not be removed, for backwards compatibility reasons.
39+
*
40+
* @deprecated since 1.2.0
3941
*/
40-
@Deprecated(since = "1.2.0")
42+
@Deprecated
4143
public interface SmartTransformer extends IClassTransformer {
4244
Logger logger();
4345

src/main/java/com/falsepattern/lib/mixin/IMixinPlugin.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ static Logger createLogger(String modName) {
5353
return LogManager.getLogger(modName + " Mixin Loader");
5454
}
5555

56-
@Deprecated(since = "1.4.0")
56+
/**
57+
* @deprecated since 1.4.0
58+
*/
59+
@Deprecated
5760
static File findJarOf(final ITargetedMod mod) {
5861
File result = null;
5962
try (val stream = walk(MODS_DIRECTORY_PATH)) {

0 commit comments

Comments
 (0)