This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 1bd62dd  AVRO-2566: Declared generic but did not initialize generic 
type (#654)
1bd62dd is described below

commit 1bd62dde0e065a1527553e3abf36b305b7e4004c
Author: Zezeng Wang <[email protected]>
AuthorDate: Sun Sep 22 14:47:32 2019 +0800

    AVRO-2566: Declared generic but did not initialize generic type (#654)
---
 .../src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
 
b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
index 1be8962..2da4944 100644
--- 
a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
+++ 
b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
@@ -93,7 +93,7 @@ final class SchemaResolver {
     Protocol result = new Protocol(protocol.getName(), protocol.getDoc(), 
protocol.getNamespace());
     final Collection<Schema> types = protocol.getTypes();
     // replace unresolved schemas.
-    List<Schema> newSchemas = new ArrayList(types.size());
+    List<Schema> newSchemas = new ArrayList<>(types.size());
     IdentityHashMap<Schema, Schema> replacements = new IdentityHashMap<>();
     for (Schema schema : types) {
       newSchemas.add(Schemas.visit(schema, new ResolvingVisitor(schema, 
replacements, new SymbolTable(protocol))));

Reply via email to