You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dinesh Joshi (Jira)" <ji...@apache.org> on 2020/05/18 19:34:00 UTC

[jira] [Assigned] (CASSANDRA-15636) Refactor protocol related code to eliminate magic numbers

     [ https://issues.apache.org/jira/browse/CASSANDRA-15636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dinesh Joshi reassigned CASSANDRA-15636:
----------------------------------------

    Assignee: Dinesh Joshi

> Refactor protocol related code to eliminate magic numbers
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-15636
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15636
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Messaging/Client
>            Reporter: Dinesh Joshi
>            Assignee: Dinesh Joshi
>            Priority: Low
>         Attachments: patch.diff
>
>
> Parts of Cassandra's codebase has protocol related magic numbers. It makes the code hard to understand. We should refactor the code to remove magic numbers and instead replace them with versioned constants. This will help make the code clearer. Example: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/transport/messages/ErrorMessage.java#L288



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org