Kyle Schoonover created AVRO-3361:
-------------------------------------

             Summary: 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


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)

Reply via email to