Skip to content

Commit

Permalink
Java generation: Renaming createWithDefaults to create
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjonesgoogle committed Aug 5, 2016
1 parent 38a8d38 commit 7de70a5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/com/google/api/codegen/java/main.snip
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
/**
* Constructs an instance of {@xapiClass.name} with default settings.
*/
public static final {@xapiClass.name} createWithDefaults() throws IOException {
public static final {@xapiClass.name} create() throws IOException {
return create({@xapiClass.settingsClassName}.defaultBuilder().build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@snippet decorateSampleCode(apiMethod, coreSampleCode)
try ({@apiMethod.apiClassName} {@apiMethod.apiVariableName} = \
{@apiMethod.apiClassName}.createWithDefaults()) {
{@apiMethod.apiClassName}.create()) {
{@coreSampleCode}
}
@end
Expand Down
Loading

0 comments on commit 7de70a5

Please sign in to comment.