Fix PMD warnings
Format code