Skip to content

Commit eba4aff

Browse files
committed
fix async option in C# nancyfx generator
1 parent 8fec429 commit eba4aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/NancyFXServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void processOpts() {
134134
}
135135

136136
if (additionalProperties.containsKey(ASYNC_SERVER)) {
137-
setAsyncServer(Boolean.parseBoolean((String)additionalProperties.get(ASYNC_SERVER)));
137+
setAsyncServer(Boolean.valueOf(additionalProperties.get(ASYNC_SERVER).toString()));
138138
}
139139

140140
additionalProperties.put("packageGuid", packageGuid);

0 commit comments

Comments
 (0)