Skip to content

Commit

Permalink
Workaround for error in groovydoc task (grails#53)
Browse files Browse the repository at this point in the history
* Prevent groovydoc error by using explicit type arguments instead of
  diamond operator
* Revert once a fix for GROOVY-8628 is included in groovy dependency
  • Loading branch information
av-m committed Jun 3, 2018
1 parent 13f8b05 commit ed33c45
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -44,7 +44,9 @@ public GrailsConcurrentLinkedMapCache(String name, long capacity, boolean allowN
this.name = name;
this.capacity = capacity;
this.allowNullValues = allowNullValues;
this.store = new ConcurrentLinkedHashMap.Builder<>()
// Workaround: using explicit type arguments to prevent groovydoc error (#53)
// Replace with diamond operator once a fix for GROOVY-8628 is included in groovy dependency
this.store = new ConcurrentLinkedHashMap.Builder<Object, Object>()
.maximumWeightedCapacity(capacity)
.build();
}
Expand Down

0 comments on commit ed33c45

Please sign in to comment.