adelapena commented on code in PR #2506:
URL: https://github.com/apache/cassandra/pull/2506#discussion_r1274736751


##########
src/java/org/apache/cassandra/net/ParamType.java:
##########
@@ -40,25 +39,17 @@
  * will skip over any params it doesn't recognise.
  *
  * Please don't add boolean params here. Extend and use {@link MessageFlag} 
instead.
+ *
+ * Do not re-use old, nor fill gaps in the sequence of, ids.  New IDs must be 
higher.

Review Comment:
   `ParamType#lookUpByAlias` is not used anymore, so we can get rid of it. With 
this method gone, `ParamType#legacyAlias` and `ParamType.aliasToTypeMap` can 
also be removed, and the constructor can take only the id and the serializer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to