Skip to content

Commit 19d1296

Browse files
fix mapper.copy()
1 parent fd4a67c commit 19d1296

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,17 @@ public class ApiClient {
297297
}
298298

299299
/**
300-
* Get a copy of the current {@link ObjectMapper}.
300+
* Get {{^useJackson3}}a copy of {{/useJackson3}}the current {@link ObjectMapper}.
301301
*
302-
* @return A copy of the current object mapper.
302+
* @return {{^useJackson3}}A copy of the current{{/useJackson3}}{{#useJackson3}}The current{{/useJackson3}} object mapper.
303303
*/
304304
public ObjectMapper getObjectMapper() {
305+
{{^useJackson3}}
305306
return mapper.copy();
307+
{{/useJackson3}}
308+
{{#useJackson3}}
309+
return mapper;
310+
{{/useJackson3}}
306311
}
307312

308313
/**

0 commit comments

Comments
 (0)