astyle

before 2018

$ astyle --style=kr --attach-namespaces --attach-classes *

2018

$ astyle --style=java *