Automatically reformat long-lined Java code to 80 columns and still compile? [duplicate]

This question already has an answer here:

My team is developing Java code in a couple different IDEs, with differing numbers of columns. It’s worked well so far, but we’ve been asked to deliver compilable code to a partner with the source limited to 80 columns. We’d like to do this as a professional courtesy, but we’re not able/willing to work with 80-column limited code on a day to day basis. Are there any tools available that will take Java code, and intelligently add line breaks so that it fits within 80 characters and still compiles correctly? Ideally, I’d like it to be one more automated step in our build process, to go recursively through our source directory for .java files and produce a copy with the new formatting.

I’m not interested in the virtues of 80-column code or editors that do or don’t word wrap, just in seeing whether there is a quick fix that will make everyone happy without anyone having to change the way they do things.

Automatically reformat long-lined Java code to 80 columns and still compile? [duplicate]