This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch branch-1.11 in repository https://gitbox.apache.org/repos/asf/avro.git
commit aae1b9baaf8aae2741a56874d3d84f8a508b4ac1 Author: Fokko Driesprong <[email protected]> AuthorDate: Thu Feb 11 22:00:55 2021 +0100 AVRO-3043: Remove redundant casts (cherry picked from commit 5ebc186856114c508f28203b19654658e87045e7) --- .../apache/avro/compiler/specific/templates/java/classic/record.vm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm b/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm index 4b11853..563cd86 100755 --- a/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm +++ b/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm @@ -64,10 +64,10 @@ public class ${this.mangle($schema.getName())}#if ($schema.isError()) extends or #if (!$schema.isError()) private static final BinaryMessageEncoder<${this.mangle($schema.getName())}> ENCODER = - new BinaryMessageEncoder<${this.mangle($schema.getName())}>(MODEL$, SCHEMA$); + new BinaryMessageEncoder<>(MODEL$, SCHEMA$); private static final BinaryMessageDecoder<${this.mangle($schema.getName())}> DECODER = - new BinaryMessageDecoder<${this.mangle($schema.getName())}>(MODEL$, SCHEMA$); + new BinaryMessageDecoder<>(MODEL$, SCHEMA$); /** * Return the BinaryMessageEncoder instance used by this class. @@ -91,7 +91,7 @@ public class ${this.mangle($schema.getName())}#if ($schema.isError()) extends or * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore */ public static BinaryMessageDecoder<${this.mangle($schema.getName())}> createDecoder(SchemaStore resolver) { - return new BinaryMessageDecoder<${this.mangle($schema.getName())}>(MODEL$, SCHEMA$, resolver); + return new BinaryMessageDecoder<>(MODEL$, SCHEMA$, resolver); } /**
