Skip to content

Commit

Permalink
Use size accessor
Browse files Browse the repository at this point in the history
The resolution alternatives are checked using the private `size` field which may not exist for all potential `List` implementations.
  • Loading branch information
Benjamin Muskalla committed Nov 25, 2020
1 parent 0d34458 commit 3fd2921
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ class ConfigurationFilters {
def method = configuration.metaClass.getMetaMethod('getResolutionAlternatives')
if (method != null) {
def alternatives = configuration.getResolutionAlternatives()
if (alternatives != null && alternatives.size > 0) {
if (alternatives != null && alternatives.size() > 0) {
return true
}
}
Expand Down

0 comments on commit 3fd2921

Please sign in to comment.