The class CliArgument has the methods prepand and append.
These methods should do what is implied by their name and JavaDoc.
Actual behavior
Both method implementations are identical while according to name and JavaDoc they should behave differently.
Further, in our code the prepend method is used to actually append CLI arguments what seems inconsistent and confusing.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
Write a test for prepend and append and test the expected behaviour.
Expected behavior
The class
CliArgument
has the methodsprepand
andappend
. These methods should do what is implied by their name and JavaDoc.Actual behavior
Both method implementations are identical while according to name and JavaDoc they should behave differently. Further, in our code the
prepend
method is used to actually append CLI arguments what seems inconsistent and confusing.Steps to reproduce (bug) / Use Case of feature request (enhancement)
Comments/Hints:
Implementation can also be simplified.
Affected version: