diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-07-16 20:17:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 19:17:15 +0100 |
commit | ff2ead62333e90b61e05c8cb6a91f692fcf30805 (patch) | |
tree | 1492660d0dd863b1416472616823c3f40efbf6c8 | |
parent | 153558c19436c6945a5ac534b035b4e3ced1bcaa (diff) | |
download | OneConfig-ff2ead62333e90b61e05c8cb6a91f692fcf30805.tar.gz OneConfig-ff2ead62333e90b61e05c8cb6a91f692fcf30805.tar.bz2 OneConfig-ff2ead62333e90b61e05c8cb6a91f692fcf30805.zip |
Move VigilanceName to public API (#57)
* fix oopsie
* apiDump
-rw-r--r-- | api/OneConfig.api | 6 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceMigrator.java | 2 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java (renamed from src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/vigilance/VigilanceName.java) | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/api/OneConfig.api b/api/OneConfig.api index c2a4b33..24a9286 100644 --- a/api/OneConfig.api +++ b/api/OneConfig.api @@ -343,6 +343,12 @@ public class cc/polyfrost/oneconfig/config/migration/VigilanceMigrator : cc/poly protected fun parse (Ljava/lang/String;)Ljava/lang/String; } +public abstract interface annotation class cc/polyfrost/oneconfig/config/migration/VigilanceName : java/lang/annotation/Annotation { + public abstract fun category ()Ljava/lang/String; + public abstract fun name ()Ljava/lang/String; + public abstract fun subcategory ()Ljava/lang/String; +} + public class cc/polyfrost/oneconfig/config/profiles/Profiles { public static final field nonProfileSpecificDir Ljava/io/File; public static final field profileDir Ljava/io/File; diff --git a/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceMigrator.java b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceMigrator.java index aed1919..1397ef9 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceMigrator.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceMigrator.java @@ -1,7 +1,5 @@ package cc.polyfrost.oneconfig.config.migration; -import cc.polyfrost.oneconfig.internal.config.compatibility.vigilance.VigilanceName; - import java.io.BufferedReader; import java.io.File; import java.io.FileReader; diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/vigilance/VigilanceName.java b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java index ff84d3c..d9db17e 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/vigilance/VigilanceName.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/migration/VigilanceName.java @@ -1,4 +1,4 @@ -package cc.polyfrost.oneconfig.internal.config.compatibility.vigilance; +package cc.polyfrost.oneconfig.config.migration; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; |