| | package com.keenwrite.dom; |
| | |
| | +import org.jetbrains.annotations.NotNull; |
| | import org.jsoup.helper.W3CDom; |
| | import org.jsoup.nodes.Node; |
 |
| | private static final NodeVisitor LIGATURE_VISITOR = new NodeVisitor() { |
| | @Override |
| | - public void head( final Node node, final int depth ) { |
| | + public void head( final @NotNull Node node, final int depth ) { |
| | if( node instanceof final TextNode textNode ) { |
| | final var parent = node.parentNode(); |
 |
| | |
| | @Override |
| | - public void tail( final Node node, final int depth ) { |
| | + public void tail( final @NotNull Node node, final int depth ) { |
| | } |
| | }; |
| | |
| | @Override |
| | - public Document fromJsoup( final org.jsoup.nodes.Document in ) { |
| | + public @NotNull Document fromJsoup( final org.jsoup.nodes.Document in ) { |
| | assert in != null; |
| | |