cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-10750) Minor code improvements
Date Sun, 22 Nov 2015 13:22:10 GMT
Robert Stupp created CASSANDRA-10750:

             Summary: Minor code improvements
                 Key: CASSANDRA-10750
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Robert Stupp
            Assignee: Robert Stupp
            Priority: Minor

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|]

This message was sent by Atlassian JIRA

View raw message