Skip to content

Commit edbf08a

Browse files
committed
UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER mvn spotbug fix
1 parent c249579 commit edbf08a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/com/thealgorithms/datastructures/heaps/LeonardoHeapTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
package com.thealgorithms.datastructures.heaps;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
45
import org.junit.jupiter.api.Test;
56

67
public class LeonardoHeapTest {
78

89
@Test
9-
public <T extends Comparable<T>> void testEmpty() {
10+
public void testEmpty() {
1011
LeonardoHeap<Integer> heap = new LeonardoHeap<Integer>();
1112
assertEquals(0, heap.getHeapsize());
1213
}
1314

1415
@Test
15-
public <T extends Comparable<T>> void testAddElement() {
16+
public void testAddElement() {
1617
LeonardoHeap<Integer> heap = new LeonardoHeap<>();
1718
heap.addElement(5);
1819
heap.addElement(3);
@@ -53,7 +54,7 @@ public void testHeapSize() {
5354
}
5455

5556
@Test
56-
public <T extends Comparable<T>> void testAddElementStrings() {
57+
public void testAddElementStrings() {
5758
LeonardoHeap<String> heap = new LeonardoHeap<String>();
5859
heap.addElement("z");
5960
heap.addElement("a");

0 commit comments

Comments
 (0)