Skip to content

Commit

Permalink
Merge pull request #172 from dbw9580/master
Browse files Browse the repository at this point in the history
Restore support for Java 8
  • Loading branch information
ianopolous authored Aug 13, 2020
2 parents bda0204 + 1e3f520 commit c9ed6ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
<source>11</source>
<target>11</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/ipfs/api/APITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void directoryTest() throws IOException {
List<MerkleNode> lsResult = ipfs.ls(addResult.hash);
if (lsResult.size() != 2)
throw new IllegalStateException("Incorrect number of objects in ls!");
if (! lsResult.stream().map(x -> x.name.get()).collect(Collectors.toSet()).equals(Set.of(subdirName, fileName)))
if (! lsResult.stream().map(x -> x.name.get()).collect(Collectors.toSet()).equals(new HashSet<>(Arrays.asList(subdirName, fileName))))
throw new IllegalStateException("Dir not returned in ls!");
byte[] catResult = ipfs.cat(addResult.hash, "/" + fileName);
if (! Arrays.equals(catResult, fileContents))
Expand Down

0 comments on commit c9ed6ac

Please sign in to comment.