debugging fix
This commit is contained in:
parent
1248bae5e4
commit
d2698f115c
|
@ -425,9 +425,15 @@ public class ExpressionNode {
|
||||||
} else if (constant instanceof Quantity) {
|
} else if (constant instanceof Quantity) {
|
||||||
Quantity q = (Quantity) constant;
|
Quantity q = (Quantity) constant;
|
||||||
b.append(Utilities.escapeJson(q.getValue().toPlainString()));
|
b.append(Utilities.escapeJson(q.getValue().toPlainString()));
|
||||||
|
if (q.hasUnit() || q.hasCode()) {
|
||||||
b.append(" '");
|
b.append(" '");
|
||||||
|
if (q.hasUnit()) {
|
||||||
b.append(Utilities.escapeJson(q.getUnit()));
|
b.append(Utilities.escapeJson(q.getUnit()));
|
||||||
|
} else {
|
||||||
|
b.append(Utilities.escapeJson(q.getCode()));
|
||||||
|
}
|
||||||
b.append("'");
|
b.append("'");
|
||||||
|
}
|
||||||
} else if (constant.primitiveValue() != null) {
|
} else if (constant.primitiveValue() != null) {
|
||||||
b.append(Utilities.escapeJson(constant.primitiveValue()));
|
b.append(Utilities.escapeJson(constant.primitiveValue()));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue