git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29184
ac1ea38d-2e2b-0410-8846-
a27921b304fc
while ((index = ret.indexOf('\'')) >= 0) {\r
String replaced = ret.substring(index, index + 2); // The replaced units are always of length 2.\r
try {\r
- ret = ret.replace(replaced, correspondences.get(replaced));\r
+ ret = ret.replace(replaced, "(" + correspondences.get(replaced) + ")");\r
} catch (NullPointerException npe) {\r
throw new UnitCheckingException("Function " + f.getName() + " output unit could not be determined. Replacement unit " \r
+ replaced + " not found in input unit definitions.");\r