Skip to content

Commit

Permalink
chore: keep java 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo committed Sep 18, 2023
1 parent 9da5974 commit 60b815b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;

public class CTrie {

Expand Down Expand Up @@ -35,7 +33,7 @@ Optional<CNode> lookup(Topic topic) {
Token token = topic.headToken();
while (!topic.isEmpty()) {
Optional<INode> child = inode.mainNode().childOf(token);
if (child.isEmpty()) {
if (!child.isPresent()) {
break;
}
topic = topic.exceptHeadToken();
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<target.version>1.8</target.version>
<junit.version>5.7.0</junit.version>
<slf4j.version>1.7.36</slf4j.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<groupId>io.moquette</groupId>
Expand Down

0 comments on commit 60b815b

Please sign in to comment.