From a9ab7c118c17cac4001e0ae5ce36761f8d0bc313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kal=C3=A9n?= Date: Mon, 29 Oct 2018 16:17:34 +0100 Subject: [PATCH] feat(Parameter): re-use public toString method Avoid code duplication --- nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java b/nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java index 4ef8436..738a470 100644 --- a/nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java +++ b/nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java @@ -40,10 +40,7 @@ public void setValue(T value) { @Override public String toString() { - return "Parameter{" + - "key='" + key + '\'' + - ", value=" + value + - '}'; + return toString("Parameter"); } String toString(String name) {