Maps.get function is no longer using Suffixes unless its absolutely

necessary.
This commit is contained in:
2021-06-23 19:34:32 +02:00
parent 357b40e670
commit ce8f49cd1f
4 changed files with 13 additions and 11 deletions
@@ -230,7 +230,8 @@ public class GlobalVariables
addFunctionMappers("ENTRY_KEY", "get%sKey");
addFunctionValueMappers("ENTRY_VALUE", "get%sValue");
addFunctionMapper("GET_KEY", "get");
addFunctionValueMapper("GET_VALUE", valueType.isObject() ? "getObject" : "get");
if(type.isObject()) addFunctionValueMapper("GET_VALUE", valueType.isObject() ? "getObject" : "get");
else addSimpleMapper("GET_VALUE", "get");
addFunctionMapper("LAST_KEY", "last");
addFunctionValueMapper("MERGE", "merge");
addFunctionMapper("NEXT", "next");