avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] branch master updated: Export getSchema() to bypass using reflection
Date Mon, 11 Mar 2019 19:20:14 GMT
This is an automated email from the ASF dual-hosted git repository.

dkulp 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 a7a5aeb  Export getSchema() to bypass using reflection
a7a5aeb is described below

commit a7a5aeba3927404f6d83306caeb546a7f3a5e705
Author: Ryo Okubo <syucream1031@gmail.com>
AuthorDate: Mon Mar 4 01:57:50 2019 +0900

    Export getSchema() to bypass using reflection
---
 .../protobuf/src/main/java/org/apache/avro/protobuf/ProtobufData.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/java/protobuf/src/main/java/org/apache/avro/protobuf/ProtobufData.java b/lang/java/protobuf/src/main/java/org/apache/avro/protobuf/ProtobufData.java
index a064f21..171929a 100644
--- a/lang/java/protobuf/src/main/java/org/apache/avro/protobuf/ProtobufData.java
+++ b/lang/java/protobuf/src/main/java/org/apache/avro/protobuf/ProtobufData.java
@@ -197,7 +197,7 @@ public class ProtobufData extends GenericData {
     }
   };
 
-  private Schema getSchema(Descriptor descriptor) {
+  public Schema getSchema(Descriptor descriptor) {
     Map<Descriptor,Schema> seen = SEEN.get();
     if (seen.containsKey(descriptor))             // stop recursion
       return seen.get(descriptor);
@@ -299,7 +299,7 @@ public class ProtobufData extends GenericData {
     }
   }
 
-  private Schema getSchema(EnumDescriptor d) {
+  public Schema getSchema(EnumDescriptor d) {
     List<String> symbols = new ArrayList<>();
     for (EnumValueDescriptor e : d.getValues()) {
       symbols.add(e.getName());


Mime
View raw message