Improved the code through checkstyle.