[
https://issues.apache.org/jira/browse/AVRO-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Tzvetanov Grigorov reassigned AVRO-3361:
-----------------------------------------------
Assignee: Kyle Schoonover (was: Martin Tzvetanov Grigorov)
> 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
> Assignee: Kyle Schoonover
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.11.1, 1.12.0
>
> Time Spent: 0.5h
> 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)