Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9731

Fix false positive findbugs warnings in CodecBuffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • 1.4.0
    • 1.4.0
    • None

    Description

      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeByte(int) ignored, but method has no side effect  At CodecBuffer.java:[line 415]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 452]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 473]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 500]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeInt(int) ignored, but method has no side effect  At CodecBuffer.java:[line 393]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeLong(long) ignored, but method has no side effect  At CodecBuffer.java:[line 404]
      M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeShort(int) ignored, but method has no side effect  At CodecBuffer.java:[line 382]
      

      These warnings are reported by SpotBugs in various PRs that do not touch CodecBuffer.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: