diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-04-02 07:08:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-02 07:08:31 +0000 |
commit | ca4e1bbb98e40bf89e4e3c83d7eb983b9027e65a (patch) | |
tree | 6ffdd2542534bc01378d2bf817563173cad5f193 /rest-services | |
parent | 07636bbe415099175afcbf55c8f08a24e5c357b5 (diff) | |
parent | 2343167c062ef8fdf6da6b9fdf8d2f5f1fca6ade (diff) |
Merge "Implement toString for Gson's objects wrappers"
Diffstat (limited to 'rest-services')
2 files changed, 18 insertions, 0 deletions
diff --git a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java index 40b8f383..a2d460d7 100644 --- a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java +++ b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/dmaap/mr/GsonMessageRouter.java @@ -70,4 +70,13 @@ abstract class GsonMessageRouter implements MessageRouter { public @Nullable AafCredentials aafCredentials() { return aafCredentials; } + + @Override + public String toString() { + return "GsonMessageRouter{" + + "name='" + name + '\'' + + ", dmaapInfo=" + dmaapInfo + + ", aafCredentials=" + aafCredentials + + '}'; + } }
\ No newline at end of file diff --git a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java index a746fac6..208cc28a 100644 --- a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java +++ b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/streams/gson/kafka/GsonKafka.java @@ -80,6 +80,15 @@ abstract class GsonKafka implements Kafka { } @Override + public String toString() { + return "GsonKafka{" + + "name='" + name + '\'' + + ", kafkaInfo=" + kafkaInfo + + ", aafCredentials=" + aafCredentials + + '}'; + } + + @Override public boolean equals(Object o) { if (this == o) { return true; |