You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/02/04 09:33:00 UTC

[jira] [Resolved] (AVRO-3361) Simplify if statement in NullCodec

     [ https://issues.apache.org/jira/browse/AVRO-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov resolved AVRO-3361.
---------------------------------------------
    Fix Version/s: 1.11.1
                   1.12.0
         Assignee: Martin Tzvetanov Grigorov
       Resolution: Fixed

> 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: Martin Tzvetanov Grigorov
>            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)