Skip to content

Commit a76c940

Browse files
j5ik2oclaude
andcommitted
fix: Scala 2.12 compatibility for mapValues
Replace view.mapValues with map pattern transformation to support Scala 2.12 where view.mapValues is not available πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8e3f4ad commit a76c940

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

β€Ž.claude/settings.local.jsonβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(sbt:*)",
5+
"Bash(java:*)",
6+
"Bash(gh run view:*)"
7+
],
8+
"deny": [],
9+
"ask": []
10+
}
11+
}

β€Ždocker-controller-scala-core/src/main/scala/com/github/j5ik2o/dockerController/NetworkSettingsImplicits.scalaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class NetworkSettingsOps(val networkSettings: NetworkSettings) extends Any
1212
}
1313

1414
def portBindings: Map[ExposedPort, Vector[Ports.Binding]] = {
15-
ports.getBindings.asScala.view.mapValues(_.toVector).toMap
15+
ports.getBindings.asScala.map { case (k, v) => k -> v.toVector }.toMap
1616
}
1717

1818
def portBinding(exposedPort: ExposedPort): Option[Vector[Ports.Binding]] = {

β€Žmise.tomlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
java = "temurin-19"

0 commit comments

Comments
Β (0)