checkstyle corrections
removed unused variable and inner assignment
checkstyle corrections