Add required type parameters.

Fixes java 7 build error.