Skip to content

Commit

Permalink
fix(java): build
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Dec 1, 2023
1 parent 8249077 commit 5480411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/clients.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
"folder": "clients/algoliasearch-client-scala",
"gitRepoId": "algoliasearch-client-scala",
"packageVersion": "2.0.0-alpha.1",
"modelFolder": "src/main/scala/algoliasearch/model",
"modelFolder": "src/main/scala/algoliasearch",
"apiFolder": "src/main/scala/algoliasearch/api",
"customGenerator": "algolia-scala",
"tests": {
"extension": "Test.scala",
"outputFolder": "test"
}
}
}
}
2 changes: 1 addition & 1 deletion templates/java/oneof_interface.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public interface {{classname}} {
return new {{classname}}.{{{datatypeWithEnum}}}Wrapper(value);
{{/isMap}}{{/isArray}}{{/isEnumRef}}{{/isModel}}
{{#isMap}}
{{{datatypeWithEnum}}} value = parser.readValueAs({{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}.class);
{{{datatypeWithEnum}}} value = parser.readValueAs(new TypeReference<{{{datatypeWithEnum}}}>(){});
return new {{classname}}.{{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}Wrapper(value);
{{/isMap}}
} catch (Exception e) {
Expand Down

0 comments on commit 5480411

Please sign in to comment.