You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2023/01/06 12:33:05 UTC

[GitHub] [avro] github-code-scanning[bot] commented on a diff in pull request #1776: AVRO-2918: Polymorphism

github-code-scanning[bot] commented on code in PR #1776:
URL: https://github.com/apache/avro/pull/1776#discussion_r1063401105


##########
lang/java/avro/src/main/java/org/apache/avro/io/FastReaderBuilder.java:
##########
@@ -579,6 +597,22 @@
     }
   }
 
+  public static class ExtendsReader implements FieldReader {
+    private final Schema schema;
+
+    public ExtendsReader(final Schema schema) {
+      this.schema = schema;
+    }
+
+    @Override
+    public Object read(final Object reuse, final Decoder decoder) throws IOException {
+      int index = decoder.readExtends();
+      final Schema realSchema = this.schema.findInHierachy(index);

Review Comment:
   ## Unread local variable
   
   Variable 'Schema realSchema' is never read.
   
   [Show more details](https://github.com/apache/avro/security/code-scanning/2962)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org