Skip to content

Commit

Permalink
Change access to direct implementation
Browse files Browse the repository at this point in the history
The example code wasn't accessing the factory that was explicitly created for this interface. It was instantiating the implementing class directly from the impl package.
  • Loading branch information
QuickWrite committed Sep 22, 2023
1 parent ebcc50c commit e6d3a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ FluentArguments arguments = ArgumentListBuilder.builder()
.add("unreadEmails", 5)
.build();

System.out.println(bundle.resolveMessage("emails", arguments, new StringResultBuilder()).get());
System.out.println(bundle.resolveMessage("emails", arguments, StringResultFactory.construct()).get());
```

```console
Expand Down

0 comments on commit e6d3a36

Please sign in to comment.