szetszwo commented on code in PR #1254:
URL: https://github.com/apache/ratis/pull/1254#discussion_r2080296811
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java:
##########
@@ -1914,6 +1914,7 @@ CompletableFuture<Message>
applyLogToStateMachine(ReferenceCountedObject<LogEntr
break;
case STATEMACHINELOGENTRY:
TransactionContext trx = getTransactionContext(next, true);
+ Preconditions.assertNotNull(trx, "trx");
Review Comment:
Let's use
```java
Objects.requireNonNull(trx, "trx == null");
```
We added it for the pre Java 7 JDK.
--
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]