Skip to content

Commit 755b99c

Browse files
committed
Use map's symbol reference in ResourceGenerator
1 parent 58724d7 commit 755b99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codegen/codegen-core/src/main/java/software/amazon/smithy/java/codegen/generators/ResourceGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ public void run() {
153153
writer.putContext("props", properties);
154154
writer.write(
155155
"""
156-
private static final ${map:T}<${string:T}, ${sdkSchema:T}> $$IDENTIFIERS = ${map:T}.ofEntries(${#ids}Map.entry(${key:S}, ${value:L})${^key.last},
156+
private static final ${map:T}<${string:T}, ${sdkSchema:T}> $$IDENTIFIERS = ${map:T}.ofEntries(${#ids}${map:T}.entry(${key:S}, ${value:L})${^key.last},
157157
${/key.last}${/ids});
158-
private static final ${map:T}<${string:T}, ${sdkSchema:T}> $$PROPERTIES = ${map:T}.ofEntries(${#props}Map.entry(${key:S}, ${value:L})${^key.last},
158+
private static final ${map:T}<${string:T}, ${sdkSchema:T}> $$PROPERTIES = ${map:T}.ofEntries(${#props}${map:T}.entry(${key:S}, ${value:L})${^key.last},
159159
${/key.last}${/props});
160160
""");
161161
writer.popState();

0 commit comments

Comments
 (0)