kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsiva...@apache.org
Subject [kafka] branch trunk updated: Make [Config]Resource.toString() consistent with existing code (#4845)
Date Tue, 10 Apr 2018 11:40:46 GMT
This is an automated email from the ASF dual-hosted git repository.

rsivaram pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e490a90  Make [Config]Resource.toString() consistent with existing code (#4845)
e490a90 is described below

commit e490a90625730564f712837b19f7a08b4d576764
Author: Magnus Edenhill <magnus@edenhill.se>
AuthorDate: Tue Apr 10 13:40:42 2018 +0200

    Make [Config]Resource.toString() consistent with existing code (#4845)
    
    The toString() for ConfigResource was using { } instead of ( ) which is inconsistent with
the existing toStrings in the code, while toString for Resource was using a mix of ( and }.
---
 .../src/main/java/org/apache/kafka/common/config/ConfigResource.java    | 2 +-
 clients/src/main/java/org/apache/kafka/common/requests/Resource.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java b/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java
index 4402c26..da718f5 100644
--- a/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java
+++ b/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java
@@ -90,6 +90,6 @@ public final class ConfigResource {
 
     @Override
     public String toString() {
-        return "ConfigResource{type=" + type + ", name='" + name + "'}";
+        return "ConfigResource(type=" + type + ", name='" + name + "')";
     }
 }
diff --git a/clients/src/main/java/org/apache/kafka/common/requests/Resource.java b/clients/src/main/java/org/apache/kafka/common/requests/Resource.java
index 6a360a5..bd81466 100644
--- a/clients/src/main/java/org/apache/kafka/common/requests/Resource.java
+++ b/clients/src/main/java/org/apache/kafka/common/requests/Resource.java
@@ -55,6 +55,6 @@ public final class Resource {
 
     @Override
     public String toString() {
-        return "Resource(type=" + type + ", name='" + name + "'}";
+        return "Resource(type=" + type + ", name='" + name + "')";
     }
 }

-- 
To stop receiving notification emails like this one, please contact
rsivaram@apache.org.

Mime
View raw message