GIRAPH-946. Fixed errors and partial checkstyle complains