Skip to content

Remove putAll usage #416

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

Merged
merged 1 commit into from
May 9, 2024
Merged

Remove putAll usage #416

merged 1 commit into from
May 9, 2024

Conversation

mccartney
Copy link
Contributor

What:
Minor refactoring.
Avoid the usage of putAll method.

Why:
To avoid the compilation error:

src/main/scala/com/sumologic/sumobot/brain/S3Brain.scala:82:11: ambiguous reference to overloaded definition,
both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
and  method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
match argument types (java.util.Map[String,String])
one error found

using some Java versions.

Context: scala/bug#10418

@mccartney mccartney merged commit d5c78d9 into main May 9, 2024
@mccartney mccartney deleted the remove-putall branch May 9, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant