cmoine / generic-enums

Attempt to implement https://openjdk.java.net/jeps/301 with annotation + processor
MIT License
7 stars 1 forks source link

Pretty print generated source #6

Closed cloudpay-simon closed 2 years ago

cloudpay-simon commented 2 years ago

Attempt to pretty-print generated source code using very simplistic algorithm.

cmoine commented 2 years ago

How about using a standard code formatter? Such as https://github.com/google/google-java-format

cloudpay-simon commented 2 years ago

That's a possibility. I wasn't sure how receptive you would be to adding a dependency. Generated code is not known for its prettiness. We use (and enforce) google-java-format here, so I'd be happy with it.