Skip to content

Commit

Permalink
to be compatible with scala 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCat committed Apr 18, 2024
1 parent f7e0999 commit f220fcd
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ class ChangePartitionManager(
var newEntry = false
val set = requests.computeIfAbsent(
partitionId,
(_: Integer) => {
newEntry = true
new util.HashSet[ChangePartitionRequest]()
new java.util.function.Function[Integer, util.Set[ChangePartitionRequest]] {
override def apply(t: Integer): util.Set[ChangePartitionRequest] = {
newEntry = true
new util.HashSet[ChangePartitionRequest]()
}
})

if (newEntry) {
Expand Down

0 comments on commit f220fcd

Please sign in to comment.