Skip to content

Commit 1e3f520

Browse files
committed
Make tests compatible with Java 8.
1 parent 187c236 commit 1e3f520

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@
7171
<artifactId>maven-compiler-plugin</artifactId>
7272
<version>3.8.0</version>
7373
<configuration>
74-
<release>11</release>
75-
<source>11</source>
76-
<target>11</target>
74+
<source>1.8</source>
75+
<target>1.8</target>
7776
</configuration>
7877
</plugin>
7978
<plugin>

src/test/java/io/ipfs/api/APITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void directoryTest() throws IOException {
141141
List<MerkleNode> lsResult = ipfs.ls(addResult.hash);
142142
if (lsResult.size() != 2)
143143
throw new IllegalStateException("Incorrect number of objects in ls!");
144-
if (! lsResult.stream().map(x -> x.name.get()).collect(Collectors.toSet()).equals(Set.of(subdirName, fileName)))
144+
if (! lsResult.stream().map(x -> x.name.get()).collect(Collectors.toSet()).equals(new HashSet<>(Arrays.asList(subdirName, fileName))))
145145
throw new IllegalStateException("Dir not returned in ls!");
146146
byte[] catResult = ipfs.cat(addResult.hash, "/" + fileName);
147147
if (! Arrays.equals(catResult, fileContents))

0 commit comments

Comments
 (0)