mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-15 23:04:45 +00:00
un-deprecate the dependency loader
This commit is contained in:
3 files changed
+2
-11
No files matched your search
@@ -29,12 +29,9 @@ import java.util.concurrent.CompletableFuture;
|
||||
|
||||
|
||||
/**
|
||||
* DEPRECATED. See the DEPENDENCIES.MD files in the root of the resources for more information.
|
||||
* <p>
|
||||
* This class will stay here for legacy compatibility
|
||||
* For regular external dependencies, see the DEPENDENCIES.MD files in the root of the resources for more information.
|
||||
* If you need more power than the one provided by the json format, you may use this class for granular loading instead.
|
||||
*/
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.11.0")
|
||||
@StableAPI(since = "0.6.0")
|
||||
public class DependencyLoader {
|
||||
@StableAPI.Expose
|
||||
|
||||
@@ -25,8 +25,6 @@ import com.falsepattern.lib.DeprecationDetails;
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import lombok.NonNull;
|
||||
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.11.0")
|
||||
@StableAPI(since = "0.10.0")
|
||||
public class Library {
|
||||
@StableAPI.Expose
|
||||
|
||||
-4
@@ -215,14 +215,10 @@ public class DependencyLoaderImpl {
|
||||
Internet.transferAndClose(is, new BufferedOutputStream(Files.newOutputStream(target.toPath())));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.11.0")
|
||||
public static void loadLibraries(Library... libraries) {
|
||||
loadLibrariesAsync(libraries).join();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@DeprecationDetails(deprecatedSince = "0.11.0")
|
||||
public static CompletableFuture<Void> loadLibrariesAsync(Library... libraries) {
|
||||
val futures = new ArrayList<CompletableFuture<Void>>();
|
||||
for (val library : libraries) {
|
||||
|
||||
Reference in new issue
Block a user