Walkmod is an open source Java tool to apply code conventions. It scans the code and instead of just reporting the invalid source files, it corrects the code automatically. This video is a short introduction to Walmod by Raquel Pau.
Further reading: Applying Java Code Conventions Using Walkmod