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

Cleanup all classes in package org.apache.hadoop.hbase.ipc for code style

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      While making adjustments for the async client I also need to fix code styling on the relevant classes. I want to do it all at once for ipc package so it does not mess up the diffs of future changes. I left out the classes I already fixed in patch in HBASE-15793

      • Fixed import order
      • Added curly brackets to all one line if statements
      • Simplified generics with diamond operators where applicable
      • Made private fields final when they were able
      • use try with resource where it could be used
      • renamed variables which were obscuring class fields
      • Added documentation to empty @ doc fields
      • Removed unnecessary setting to null
      • Removed unused getDelimitedMessageAsByteBuffer and readChunked methods from private IPCUtil class

      Attachments

        1. HBASE-15795.patch
          48 kB
          Jurriaan Mous

        Activity

          People

            jurmous Jurriaan Mous
            jurmous Jurriaan Mous
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: