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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]