avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@apache.org
Subject [avro] branch master updated: AVRO-2512: Fix formatting
Date Tue, 20 Aug 2019 14:25:28 GMT
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 eda4359  AVRO-2512: Fix formatting
eda4359 is described below

commit eda435931b8dbd913b98567814494ddfe4bea016
Author: Fokko Driesprong <fokko@apache.org>
AuthorDate: Tue Aug 20 16:25:13 2019 +0200

    AVRO-2512: Fix formatting
---
 lang/java/avro/src/main/java/org/apache/avro/SchemaCompatibility.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lang/java/avro/src/main/java/org/apache/avro/SchemaCompatibility.java b/lang/java/avro/src/main/java/org/apache/avro/SchemaCompatibility.java
index b94b3bd..3e5628d 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/SchemaCompatibility.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/SchemaCompatibility.java
@@ -404,8 +404,7 @@ public class SchemaCompatibility {
           if (!readerField.hasDefaultValue()) {
             // reader field has no default value. Check for the enum default value
             if (readerField.schema().getType() == Type.ENUM && readerField.schema().getEnumDefault()
!= null) {
-              result = result
-                  .mergedWith(getCompatibility("type", readerField.schema(), writer, location));
+              result = result.mergedWith(getCompatibility("type", readerField.schema(), writer,
location));
             } else {
               result = result.mergedWith(
                   SchemaCompatibilityResult.incompatible(SchemaIncompatibilityType.READER_FIELD_MISSING_DEFAULT_VALUE,


Mime
View raw message