Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HDouss committed Feb 29, 2020
1 parent 1f98780 commit 38cd220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/jpeek/graph/XmlGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import com.jcabi.xml.XML;
import java.io.IOException;
import java.util.List;
import org.cactoos.Scalar;
import org.cactoos.list.Mapped;
import org.cactoos.scalar.Sticky;
import org.cactoos.scalar.Unchecked;
import org.cactoos.text.Joined;
import org.jpeek.skeleton.Skeleton;
Expand All @@ -50,9 +50,9 @@ public final class XmlGraph implements Graph {
*/
public XmlGraph(final Skeleton skeleton) throws IOException {
this.nds = new Unchecked<>(
(Scalar<List<Node>>) () -> {
return XmlGraph.build(skeleton);
}
new Sticky<>(
() -> XmlGraph.build(skeleton)
)
);
}

Expand Down

0 comments on commit 38cd220

Please sign in to comment.