Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3361

Simplify if statement in NullCodec

    XMLWordPrintableJSON

Details

    Description

      Example:

      Change this:

              public override bool Equals(object other)
              {
                  if (this == other)
                      return true;
                  return this.GetType().Name == other.GetType().Name;
              } 

      to this:

              public override bool Equals(object other)
              {
                  return this == other ? true : GetType().Name == other.GetType().Name;
              }

      Attachments

        Issue Links

          Activity

            People

              KSchoonover Kyle Schoonover
              KSchoonover Kyle Schoonover
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h