Skip to content

Commit

Permalink
Work around groovy type inference bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sherter committed Aug 24, 2016
1 parent f7915d2 commit 8e975ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class FormatterFactory {

@PackageScope
static ImmutableSet<FormatterOption> mapOptions(Map<String, Object> optionsInDsl) {
Set<FormatterOption> mapped = new HashSet<>(optionsInDsl.size())
Set<FormatterOption> mapped = new HashSet<FormatterOption>(optionsInDsl.size())
for (Map.Entry<String, Object> entry : optionsInDsl) {
def option = optionMapping.get(entry.key, entry.value)
def option = (FormatterOption) optionMapping.get(entry.key, entry.value)
if (option == null) {
throw new IllegalArgumentException("invalid option: $entry")
}
Expand Down

0 comments on commit 8e975ec

Please sign in to comment.