devonfw / IDEasy

Tool to automate the setup and updates of a development environment for any project (Successor of devonfw-ide).
Apache License 2.0
8 stars 23 forks source link

CliArgument prepend and append methods inconsistent #623

Closed hohwille closed 2 months ago

hohwille commented 2 months ago

Expected behavior

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)

  1. Write a test for prepend and append and test the expected behaviour.

Comments/Hints:

Implementation can also be simplified.

Affected version: