Skip to content

Commit

Permalink
fix: Groovy 3.0.20 compatibility (#13371)
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei authored Jan 26, 2024
1 parent 228500a commit a58ae33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion grails-shell/src/main/groovy/org/grails/cli/GrailsCli.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import groovy.transform.CompileStatic
import jline.UnixTerminal
import jline.console.UserInterruptException
import jline.console.completer.ArgumentCompleter
import jline.console.completer.Completer
import jline.internal.NonBlockingInputStream
import org.gradle.tooling.BuildActionExecuter
import org.gradle.tooling.BuildCancelledException
Expand Down Expand Up @@ -417,7 +418,7 @@ class GrailsCli {
new RegexCompletor("!\\w+"), new EscapingFileNameCompletor())
)

completers.addAll((profile.getCompleters(projectContext) ?: []) as Collection)
completers.addAll((profile.getCompleters(projectContext) ?: []) as Collection<Completer>)
consoleReader.addCompleter(aggregateCompleter)
return console
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ abstract class AbstractProfile implements Profile {
}
}

defaultFeaturesNames.addAll(defaultFeatures)
requiredFeatureNames.addAll(requiredFeatures)
defaultFeaturesNames.addAll(defaultFeatures as Set<String>)
requiredFeatureNames.addAll(requiredFeatures as Set<String>)
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ abstract class AbstractStructuredBindingEditor<T> implements TypedStructuredBind
valuesMap[propName] = bindingSource.getPropertyValue(key)
}
}
valuesMap
valuesMap as Map<String, Object>
}
}

0 comments on commit a58ae33

Please sign in to comment.