Fix FindBug and Checkstyle Warnings

Signed-off-by: Yasser Aziza <yasser.aziza@gmail.com>