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

Conversions.java - Use JDK Array Manipulations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.9.0
    • None
    • None

    Description

      Conversions.java
            for (int i = 0; i < bytes.length; i += 1) {
              if (i < offset) {
                bytes[i] = fillByte;
              } else {
                bytes[i] = unscaled[i - offset];
              }
            }
      

      Improve readability with Arrays.fill method to fill the first offset bytes and then copy over the remaining.

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: