belliottsmith commented on code in PR #8:
URL: https://github.com/apache/cassandra-accord/pull/8#discussion_r936934930


##########
accord-maelstrom/src/main/java/accord/maelstrom/Body.java:
##########
@@ -23,7 +24,7 @@
 
     public Body(Type type, long msg_id, long in_reply_to)
     {
-        this.type = type;
+        this.type = Objects.requireNonNull(type);

Review Comment:
   It's not Guava so I don't mind, though I prefer annotations (and we can 
perhaps later use byte weaving or something to insert run-time asserts during 
tests)



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