MINOR: remove an unnecessary explicit type argument
Reviewers: Colin P. McCabe
@@ -628,8 +628,7 @@ public final class MessageDataGenerator implements MessageClassGenerator {
headerGenerator.addImport(MessageGenerator.ARRAYLIST_CLASS);
String boxedArrayType =
arrayType.elementType().getBoxedJavaType(headerGenerator);
- buffer.printf("ArrayList<%s> newCollection = new ArrayList<%s>(%s);%n",
- boxedArrayType, boxedArrayType, lengthVar);
+ buffer.printf("ArrayList<%s> newCollection = new ArrayList<>(%s);%n", boxedArrayType, lengthVar);
}
buffer.printf("for (int i = 0; i < %s; i++) {%n", lengthVar);
buffer.incrementIndent();
