Skip to content

Commit 9958f0d

Browse files
committed
soft-deprecate the loadlibrary method instead, no removal planned.
1 parent 1972f65 commit 9958f0d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/falsepattern/lib/dependencies/DependencyLoader.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import com.falsepattern.lib.DeprecationDetails;
2424
import com.falsepattern.lib.StableAPI;
25-
import com.falsepattern.lib.internal.Share;
2625
import com.falsepattern.lib.internal.impl.dependencies.DependencyLoaderImpl;
2726
import lombok.NonNull;
2827

@@ -47,13 +46,13 @@ public static void loadLibraries(Library... libraries) {
4746
DependencyLoaderImpl.loadLibraries(libraries);
4847
}
4948

49+
/**
50+
* Deprecated, but will be kept here due to mod compat for an undetermined duration.
51+
*/
5052
@Deprecated
5153
@DeprecationDetails(deprecatedSince = "0.10.0")
5254
@StableAPI.Expose
5355
public static void loadLibrary(@NonNull String loadingModId, @NonNull String groupId, @NonNull String artifactId, @NonNull Version minVersion, Version maxVersion, @NonNull Version preferredVersion, String regularSuffix, String devSuffix) {
54-
Share.LOG
55-
.warn(DependencyLoader.class.getName() +
56-
".loadLibrary is deprecated and will be removed in FalsePatternLib 0.11! Use loadLibraries instead!");
5756
DependencyLoaderImpl.loadLibrary(loadingModId, groupId, artifactId, minVersion, maxVersion, preferredVersion,
5857
regularSuffix, devSuffix);
5958
}

0 commit comments

Comments
 (0)