Skip to content

Commit

Permalink
Fix cast exception when running peon tasks(#16271)
Browse files Browse the repository at this point in the history
  • Loading branch information
soullkk committed Apr 14, 2024
1 parent b0c5184 commit 686ba10
Showing 1 changed file with 2 additions and 18 deletions.
Expand Up @@ -909,24 +909,9 @@ public CommandListBuilder add(String arg)
return this;
}

public CommandListBuilder addSystemProperty(String property, int value)
public CommandListBuilder addSystemProperty(String property, Object value)
{
return addSystemProperty(property, String.valueOf(value));
}

public CommandListBuilder addSystemProperty(String property, long value)
{
return addSystemProperty(property, String.valueOf(value));
}

public CommandListBuilder addSystemProperty(String property, boolean value)
{
return addSystemProperty(property, String.valueOf(value));
}

public CommandListBuilder addSystemProperty(String property, String value)
{
return add(StringUtils.format("-D%s=%s", property, value));
return add(StringUtils.format("-D%s=%s", property, String.valueOf(value)));
}

public CommandListBuilder addAll(Iterable<String> args)
Expand All @@ -941,7 +926,6 @@ public ArrayList<String> getCommandList()
{
return commandList;
}

}
}

0 comments on commit 686ba10

Please sign in to comment.