Skip to content

Commit 30b141c

Browse files
committed
Fix build errors
1 parent b841d57 commit 30b141c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/com/thealgorithms/scheduling/NonPreemptivePriorityScheduling.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
*/
1212
public class NonPreemptivePriorityScheduling {
1313

14+
private NonPreemptivePriorityScheduling() {
15+
}
16+
1417
static class Process implements Comparable<Process> {
1518
int id; // Process ID
1619
int burstTime; // Time required by the process for execution
1720
int priority; // Priority of the process (lower value indicates higher priority)
1821

19-
public Process(int id, int burstTime, int priority) {
22+
Process(int id, int burstTime, int priority) {
2023
this.id = id;
2124
this.burstTime = burstTime;
2225
this.priority = priority;

src/test/java/com/thealgorithms/scheduling/NonPreemptivePrioritySchedulingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.thealgorithms.scheduling;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
44

55
import org.junit.jupiter.api.Test;
66

0 commit comments

Comments
 (0)