kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: MINOR: Fix non-null check in the constructor of ListenerName
Date Fri, 17 Mar 2017 13:49:25 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 6b11fb7af -> 01768e332


MINOR: Fix non-null check in the constructor of ListenerName

Author: Kamal C <kamal.chandraprakash@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #2700 from Kamal15/precondition


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/01768e33
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/01768e33
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/01768e33

Branch: refs/heads/trunk
Commit: 01768e3321cfce19bf558ad0fe7bf6ca84ada8f6
Parents: 6b11fb7
Author: Kamal C <kamal.chandraprakash@gmail.com>
Authored: Fri Mar 17 13:49:19 2017 +0000
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Fri Mar 17 13:49:19 2017 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/kafka/common/network/ListenerName.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/01768e33/clients/src/main/java/org/apache/kafka/common/network/ListenerName.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/common/network/ListenerName.java b/clients/src/main/java/org/apache/kafka/common/network/ListenerName.java
index 1245b1f..07ce7de 100644
--- a/clients/src/main/java/org/apache/kafka/common/network/ListenerName.java
+++ b/clients/src/main/java/org/apache/kafka/common/network/ListenerName.java
@@ -42,7 +42,7 @@ public final class ListenerName {
     private final String value;
 
     public ListenerName(String value) {
-        Objects.requireNonNull("value should not be null");
+        Objects.requireNonNull(value, "value should not be null");
         this.value = value;
     }
 


Mime
View raw message