diff --git a/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute b/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute index bcdfa1b68..cb995e110 100644 --- a/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute +++ b/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute @@ -103,11 +103,11 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl } {/if} {#if v.isMap} - public {m.classname} put{v.nameInPascalCase}Item(String key, {v.items.datatypeWithEnum} {v.name}Item) { + public {m.classname} put{v.nameInPascalCase}Item(String mapKey, {v.items.datatypeWithEnum} {v.name}Item) { if (this.{v.name} == null){ {v.name} = {#if v.defaultValue}{v.defaultValue}{#else}new HashMap<>(){/if}; } - this.{v.name}.put(key, {v.name}Item); + this.{v.name}.put(mapKey, {v.name}Item); return this; } {/if} diff --git a/client/deployment/src/main/resources/templates/libraries/microprofile/pojoQueryParam.qute b/client/deployment/src/main/resources/templates/libraries/microprofile/pojoQueryParam.qute index cb0ccd9ee..91612c3c5 100644 --- a/client/deployment/src/main/resources/templates/libraries/microprofile/pojoQueryParam.qute +++ b/client/deployment/src/main/resources/templates/libraries/microprofile/pojoQueryParam.qute @@ -89,8 +89,8 @@ } {/if} {#if v.isMap} - public {m.classname}QueryParam put{v.nameInPascalCase}Item(String key, {v.items.datatypeWithEnum} {v.name}Item) { - this.{v.name}.put(key, {v.name}Item); + public {m.classname}QueryParam put{v.nameInPascalCase}Item(String mapKey, {v.items.datatypeWithEnum} {v.name}Item) { + this.{v.name}.put(mapKey, {v.name}Item); return this; } {/if}