Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
There are a couple of opportunities to improve performance and simplify CompilerMojo's preparePaths() method.
A StringBuilder is used to concatenate 3 strings. String.format() will be neater here.
Secondly, the compilerArgs array is checked for null and initialised if so in two separate places. Since this check is always performed, doing it earlier will allow one check to be removed.