Make generic declaration Java 6 compatible

With this edit, Spark can be built by a Java 6 compiler.