aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-06-27 14:15:04 +0300
committerPavel Aharoni <pa0916@att.com>2017-06-27 14:15:04 +0300
commit95eec749b89894f6f74661ec9f9eef46c6798341 (patch)
tree5d9ca7ed18b55444aa050ff090fdd3ad9cea36a9 /src/main/java/org
parent38de9e0fc3dd7557b17f33d332663ff10bbc0200 (diff)
[SDC-39] fix Function args toString
Change-Id: I7b5d1445c701f7a18ebd5522fbf20b8cb5befc3b Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/openecomp/sdc/toscaparser/api/functions/Function.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openecomp/sdc/toscaparser/api/functions/Function.java b/src/main/java/org/openecomp/sdc/toscaparser/api/functions/Function.java
index 5e5f31f..9c39b30 100644
--- a/src/main/java/org/openecomp/sdc/toscaparser/api/functions/Function.java
+++ b/src/main/java/org/openecomp/sdc/toscaparser/api/functions/Function.java
@@ -134,7 +134,8 @@ public abstract class Function {
@Override
public String toString() {
- return name + ":" + args.toString();
+ String argsStr = args.size() > 1 ? args.toString() : args.get(0).toString();
+ return name + ":" + argsStr;
}
}