JOpt 4.6 redeclared its nonOptionArguments() method from List<String> to List<?>, requiring us to select String arguments only as we do for regular option values already.
Issue: SPR-11359
(cherry picked from commit 67e76e9)
@ -72,6 +72,7 @@ public class JOptCommandLinePropertySource extends CommandLinePropertySource<Opt
@@ -72,6 +72,7 @@ public class JOptCommandLinePropertySource extends CommandLinePropertySource<Opt
super(name,options);
}
@Override
protectedbooleancontainsOption(Stringname){
returnthis.source.has(name);
@ -81,26 +82,26 @@ public class JOptCommandLinePropertySource extends CommandLinePropertySource<Opt
@@ -81,26 +82,26 @@ public class JOptCommandLinePropertySource extends CommandLinePropertySource<Opt