Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Groovy 3.0.20 compatibility #13371

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
}
}
Loading