[Swift-commit] r8017 - trunk/src/org/griphyn/vdl/mapping
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Sun Jul 13 02:35:28 CDT 2014
Author: hategan
Date: 2014-07-13 02:35:28 -0500 (Sun, 13 Jul 2014)
New Revision: 8017
Modified:
trunk/src/org/griphyn/vdl/mapping/MappingParamSet.java
Log:
nicer toString() for mapper params
Modified: trunk/src/org/griphyn/vdl/mapping/MappingParamSet.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/MappingParamSet.java 2014-07-13 05:00:12 UTC (rev 8016)
+++ trunk/src/org/griphyn/vdl/mapping/MappingParamSet.java 2014-07-13 07:35:28 UTC (rev 8017)
@@ -38,9 +38,14 @@
}
protected void addParam(StringBuilder sb, String name, Object value) {
- sb.append(", ");
+ if (sb.length() > 2 && sb.charAt(sb.length() - 2) == ';') {
+ // first param
+ }
+ else {
+ sb.append(", ");
+ }
sb.append(name);
- sb.append(" = ");
+ sb.append("=");
sb.append(Tracer.unwrapHandle(value));
}
More information about the Swift-commit
mailing list