Generic variance

This commit is contained in:
Auxilor
2021-12-03 15:58:41 +00:00
parent 28cdb65176
commit 2f7603409e

View File

@@ -531,7 +531,7 @@ public interface Config extends Cloneable {
* @return The found value, or a blank {@link java.util.ArrayList} if not found.
*/
@NotNull
List<Config> getSubsections(@NotNull String path);
List<? extends Config> getSubsections(@NotNull String path);
/**
* Get a list of subsections from config.
@@ -540,7 +540,7 @@ public interface Config extends Cloneable {
* @return The found value, or null if not found.
*/
@Nullable
List<Config> getSubsectionsOrNull(@NotNull String path);
List<? extends Config> getSubsectionsOrNull(@NotNull String path);
/**