kenliao94 commented on code in PR #1222:
URL: https://github.com/apache/activemq/pull/1222#discussion_r1598123560
##########
activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java:
##########
@@ -2048,7 +2047,7 @@ protected void checkTmpStoreUsageLimits() throws
Exception {
long maxJournalFileSize;
PListStore store = usage.getTempUsage().getStore();
- if (store != null && store instanceof JournaledStore) {
+ if (store instanceof JournaledStore) {
Review Comment:
Yes. But `instanceof` should handle the nullchecking, so the first check is
redundant.
--
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]