Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19835

Make explicit casting of atleast one operand to final type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha-1
    • None
    • None
    • None
    • Reviewed

    Description

      We have used 

      long = int + int 

      at many places mostly wherever ClassSize.java variables are used for calculation.

      Need to cast explicitly at-least one operand to final type(i.e. type the result is intended to be casted).

       

       

      Attachments

        1. HBASE-19835.master.02.patch
          23 kB
          Aman Poonia
        2. HBASE-19835.master.01.patch
          13 kB
          Aman Poonia

        Activity

          People

            mnpoonia Aman Poonia
            mnpoonia Aman Poonia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: