Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
Use setCommand() or setExecutable(), not both.

Also the "reset" method seems to be non-fluent.

Solution

...

  1. initialize the command and executable properties of ProcessBuilder class with NULL rather than an empty string

...

  1. make "reset" method fluent

Related Tasks