Skip to content

Commit 100c85a

Browse files
committed
Update TypeMap.java
1 parent 986729e commit 100c85a

File tree

1 file changed

+1
-1
lines changed
  • http-generator-core/src/main/java/io/avaje/http/generator/core

1 file changed

+1
-1
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/TypeMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public String toMethod() {
315315

316316
@Override
317317
public String asMethod() {
318-
return "asEnum(" + type.shortType() + ".class, ";
318+
return "(" + type.shortType() + ") asEnum(" + type.shortType() + ".class, ";
319319
}
320320
}
321321

0 commit comments

Comments
 (0)