You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/09/14 00:44:55 UTC

[pulsar] branch master updated: Remove null-check finalEx (#17624)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new e4a147366af Remove null-check finalEx (#17624)
e4a147366af is described below

commit e4a147366af1e77891ce936be0b11b161ccb42b1
Author: Xiaoyu Hou <ho...@apache.org>
AuthorDate: Wed Sep 14 08:44:46 2022 +0800

    Remove null-check finalEx (#17624)
---
 .../src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
index e119907d3e3..c51562157df 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
@@ -1455,7 +1455,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
             SendCallback callback = this.callback;
             if (null != callback) {
                 Exception finalEx = e;
-                if (finalEx != null && finalEx instanceof TimeoutException) {
+                if (finalEx instanceof TimeoutException) {
                     TimeoutException te = (TimeoutException) e;
                     long sequenceId = te.getSequenceId();
                     long ns = System.nanoTime();