[
https://issues.apache.org/jira/browse/AVRO-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated AVRO-3361:
---------------------------------
Labels: pull-request-available (was: )
> Simplify if statement in NullCodec
> ----------------------------------
>
> Key: AVRO-3361
> URL: https://issues.apache.org/jira/browse/AVRO-3361
> Project: Apache Avro
> Issue Type: Improvement
> Components: csharp
> Affects Versions: 1.11.1
> Reporter: Kyle Schoonover
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Example:
> Change this:
> {code:java}
> public override bool Equals(object other)
> {
> if (this == other)
> return true;
> return this.GetType().Name == other.GetType().Name;
> } {code}
> to this:
> {code:java}
> public override bool Equals(object other)
> {
> return this == other ? true : GetType().Name ==
> other.GetType().Name;
> }{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)