Skip to content

Commit

Permalink
avro-3649: Add override annotation (codeQL warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaec committed Jan 5, 2023
1 parent d0e452b commit bc3f50a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lang/java/avro/src/main/java/org/apache/avro/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,7 @@ public UnionSchema(LockableArrayList<Schema> types) {
* @param value a value to check against the schema
* @return true if the value is valid according to this schema
*/
@Override
public boolean isValidValue(final Object value) {
return this.types.stream().anyMatch((Schema s) -> s.isValidValue(value));
}
Expand Down

0 comments on commit bc3f50a

Please sign in to comment.