mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: include OCP_OVERLY_CONCRETE_PARAMETER (#5833)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.thealgorithms.scheduling.diskscheduling;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -24,7 +25,7 @@ public class SSFScheduling {
|
||||
this.currentPosition = currentPosition;
|
||||
}
|
||||
|
||||
public List<Integer> execute(List<Integer> requests) {
|
||||
public List<Integer> execute(Collection<Integer> requests) {
|
||||
List<Integer> result = new ArrayList<>(requests);
|
||||
List<Integer> orderedRequests = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user