Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10750

Minor code improvements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.2
    • None
    • None

    Description

      Went though several IDE inspections and found some places in the code that could be improved. These are just minor improvements and no bug fixes (except one minor "theoretical" thing).

      The branch on github against trunk contains a series of commits:

      • simplify Mutation.apply to remove the casts
      • "minor code improvements" just replaces some expressions that are effectively constant
      • remove unused assignments (probably just cosmetic)
      • collapse identical if-branches (probably just cosmetic)
      • empty array constants
      • fix printf usage (could potentially raise an exception in printf)
      • replace tail-recursion in some critical sections (as the JVM cannot optimize that AFAIK)
      • remove methods identical to their super methods (probably just cosmetic)

      cassci results here

      Attachments

        Activity

          People

            snazy Robert Stupp
            snazy Robert Stupp
            Robert Stupp
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: