Skip to content

Commit 45345de

Browse files
downgrade to java 8 for local machine JDK version
1 parent 17f4f58 commit 45345de

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ checkstyle {
1111

1212
description = """"""
1313

14-
sourceCompatibility = 1.9
15-
targetCompatibility = 1.9
14+
sourceCompatibility = 1.8
15+
targetCompatibility = 1.8
1616

1717
repositories {
1818
mavenCentral()

src/test/java/com/fishercoder/_247Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.junit.BeforeClass;
55
import org.junit.Test;
66

7+
import java.util.Arrays;
78
import java.util.List;
89

910
import static org.junit.Assert.assertEquals;
@@ -19,7 +20,7 @@ public static void setup() {
1920

2021
@Test
2122
public void test1() {
22-
expected = List.of("11","69","88","96");
23+
expected = Arrays.asList("11","69","88","96");
2324
assertEquals(expected, solution1.findStrobogrammatic(2));
2425
}
2526

src/test/java/com/fishercoder/_589Test.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
import com.fishercoder.common.classes.Node;
44
import com.fishercoder.solutions._589;
5-
import java.util.List;
65
import org.junit.BeforeClass;
76
import org.junit.Ignore;
87
import org.junit.Test;
98

10-
import static org.junit.Assert.assertArrayEquals;
9+
import java.util.Arrays;
10+
import java.util.List;
11+
1112
import static org.junit.Assert.assertEquals;
1213

1314
public class _589Test {
@@ -23,7 +24,7 @@ public static void setup() {
2324
@Test
2425
@Ignore//todo: Node.createNaryTree method hasn't been implemented yet
2526
public void test1() {
26-
expectedPreOrder = List.of(1, 3, 5, 6, 2, 4);
27+
expectedPreOrder = Arrays.asList(1, 3, 5, 6, 2, 4);
2728
root = Node.createNaryTree(expectedPreOrder);
2829
assertEquals(expectedPreOrder, solution1.preorder(root));
2930
}

src/test/java/com/fishercoder/_700Test.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import com.fishercoder.common.classes.TreeNode;
44
import com.fishercoder.common.utils.TreeUtils;
55
import com.fishercoder.solutions._700;
6-
import com.fishercoder.solutions._74;
76
import org.junit.BeforeClass;
87
import org.junit.Test;
98

10-
import java.util.List;
9+
import java.util.Arrays;
1110

1211
import static junit.framework.Assert.assertEquals;
1312

@@ -23,8 +22,8 @@ public static void setup() {
2322

2423
@Test
2524
public void test1() {
26-
root = TreeUtils.constructBinaryTree(List.of(4, 2, 7, 1, 3));
27-
expected = TreeUtils.constructBinaryTree(List.of(2, 1, 3));
25+
root = TreeUtils.constructBinaryTree(Arrays.asList(4, 2, 7, 1, 3));
26+
expected = TreeUtils.constructBinaryTree(Arrays.asList(2, 1, 3));
2827
assertEquals(expected, solution1.searchBST(root, 2));
2928
}
3029
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy