Skip to content

Commit 54c917b

Browse files
committed
Add explicit casts to satisfy ECJ
1 parent 0fbfa42 commit 54c917b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/launcher/java/org/truffleruby/launcher/RubyLauncher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected List<String> preprocessArguments(List<String> args, Map<String, String
7272
final CommandLineParser argumentCommandLineParser = new CommandLineParser(args, config, true, false);
7373
argumentCommandLineParser.processArguments();
7474

75-
if (config.getOption(OptionsCatalog.READ_RUBYOPT)) {
75+
if ((boolean) config.getOption(OptionsCatalog.READ_RUBYOPT)) {
7676
// Process RUBYOPT
7777
final List<String> rubyoptArgs = getArgsFromEnvVariable("RUBYOPT");
7878
new CommandLineParser(rubyoptArgs, config, false, true).processArguments();
@@ -270,11 +270,11 @@ private String setRubyLauncher() {
270270
}
271271

272272
private static void printPreRunInformation(CommandLineOptions config) {
273-
if (config.getOption(OptionsCatalog.SHOW_VERSION)) {
273+
if ((boolean) config.getOption(OptionsCatalog.SHOW_VERSION)) {
274274
System.out.println(TruffleRuby.getVersionString(isAOT()));
275275
}
276276

277-
if (config.getOption(OptionsCatalog.SHOW_COPYRIGHT)) {
277+
if ((boolean) config.getOption(OptionsCatalog.SHOW_COPYRIGHT)) {
278278
System.out.println(TruffleRuby.RUBY_COPYRIGHT);
279279
}
280280

0 commit comments

Comments
 (0)