add issue solution GIRAPH-743 and fix checkstyle issues