I hate it :)
GNU indent
is apparently for C, and does mostly useful, but some bad things to Java source code, at least with the few options I tried. I found that Google Java format works pretty reasonably as a command line reformatter for entire files, but by design has no configuration options: https://github.com/google/google-java-format