GP-0: Changing default behavior of OptionChooser.getArgs() to return an

empty list rather than throw an exception
This commit is contained in:
Ryan Kurtz
2026-02-06 04:57:29 -05:00
parent 02d096d4f9
commit 8baadaba27
@@ -47,11 +47,10 @@ public interface OptionChooser {
* Gets the {@link Loader} arguments associated with this {@link OptionChooser} * Gets the {@link Loader} arguments associated with this {@link OptionChooser}
* *
* @return The {@link Loader} arguments associated with this {@link OptionChooser} * @return The {@link Loader} arguments associated with this {@link OptionChooser}
* @throws UnsupportedOperationException if a subclass has not implemented this method
* @deprecated Use {@link ProgramLoader.Builder#loaderArgs(List)} instead * @deprecated Use {@link ProgramLoader.Builder#loaderArgs(List)} instead
*/ */
@Deprecated(since = "12.0", forRemoval = true) @Deprecated(since = "12.0", forRemoval = true)
public default List<Pair<String, String>> getArgs() { public default List<Pair<String, String>> getArgs() {
throw new UnsupportedOperationException(); return List.of();
} }
} }