Support APT processor with Java 7, fix some checkstyle warnings