Specify the generic argument to avoid a compiler inference bug in javac 1.6