bbeaudreault commented on a change in pull request #4270:
URL: https://github.com/apache/hbase/pull/4270#discussion_r833537243



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerImpl.java
##########
@@ -224,13 +224,12 @@ static Throwable translateException(Throwable t) throws 
DoNotRetryIOException {
     if (t instanceof ServiceException) {
       ServiceException se = (ServiceException)t;
       Throwable cause = se.getCause();
-      if (cause != null && cause instanceof DoNotRetryIOException) {
+      if (cause instanceof DoNotRetryIOException) {

Review comment:
       this change here just cleans up an IDE warning that [null checks are not 
necessary when doing 
instanceof](https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.20.2).




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


Reply via email to