Skip to content

Commit

Permalink
[#2349] Improvement: Fix the warning: unchecked method invocation: me…
Browse files Browse the repository at this point in the history
…thod put in interface Map is applied to given types
  • Loading branch information
cchung100m committed Jan 24, 2025
1 parent 08e7397 commit 0a73414
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ public int compare(K o1, K o2) {

public void start() {
for (int partitionId : partitionIds) {
mergeBuffers.put(partitionId, new Queue(maxBufferPerPartition));
mergeBuffers.put(partitionId, new Queue<>(maxBufferPerPartition));
if (this.combiner != null) {
combineBuffers.put(partitionId, new Queue(maxBufferPerPartition));
combineBuffers.put(partitionId, new Queue<>(maxBufferPerPartition));
}
RecordsFetcher fetcher = new RecordsFetcher(partitionId);
fetcher.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ public void remoteMergeWriteReadTestMultiPartition(String classes) throws Except
Map<Integer, Set<Long>> ptb = new HashMap<>();
for (int i = PARTITION_ID; i < PARTITION_ID + 3; i++) {
final int partitionId = i;
ptb.put(partitionId, new HashSet());
ptb.put(partitionId, new HashSet<>());
ptb.get(partitionId)
.addAll(
blocks1.stream()
Expand Down Expand Up @@ -854,7 +854,7 @@ public void remoteMergeWriteReadTestMultiPartitionWithCombine(String classes) th
Map<Integer, Set<Long>> ptb = new HashMap<>();
for (int i = PARTITION_ID; i < PARTITION_ID + 3; i++) {
final int partitionId = i;
ptb.put(partitionId, new HashSet());
ptb.put(partitionId, new HashSet<>());
ptb.get(partitionId)
.addAll(
blocks1.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public void remoteMergeWriteReadTestMultiPartition(String classes) throws Except
Map<Integer, Set<Long>> ptb = new HashMap<>();
for (int i = PARTITION_ID; i < PARTITION_ID + 3; i++) {
final int partitionId = i;
ptb.put(partitionId, new HashSet());
ptb.put(partitionId, new HashSet<>());
ptb.get(partitionId)
.addAll(
blocks1.stream()
Expand Down Expand Up @@ -869,7 +869,7 @@ public void remoteMergeWriteReadTestMultiPartitionWithCombine(String classes) th
Map<Integer, Set<Long>> ptb = new HashMap<>();
for (int i = PARTITION_ID; i < PARTITION_ID + 3; i++) {
final int partitionId = i;
ptb.put(partitionId, new HashSet());
ptb.put(partitionId, new HashSet<>());
ptb.get(partitionId)
.addAll(
blocks1.stream()
Expand Down

0 comments on commit 0a73414

Please sign in to comment.