Updated java version to 1.8.
Update Travis config to use Java 8.
Remove unused type parameters and fields.