codehaus-plexus / plexus-utils

Plexus Utils
https://codehaus-plexus.github.io/plexus-utils/
Apache License 2.0
35 stars 39 forks source link

fileAppend makes use of optimized fileWrite implementations for JRE 8 and JRE 11 #235

Closed mkarg closed 1 year ago

mkarg commented 1 year ago

Recently we optimized the fileWrite method for JRE 8 and JRE 11. This PR rewrites the fileAppend method so it makes use of these optimized implementations, while reducing the code size at the same time.

mkarg commented 1 year ago

@michael-o Kindly requesting review. It is more or less a follow-up to https://github.com/codehaus-plexus/plexus-utils/pull/233, essentially replacing the explicit implementation by simply reusing fileWrite.

michael-o commented 1 year ago

Please squash

mkarg commented 1 year ago

Squashed code is pushed.