Skip to content

Commit

Permalink
Specify overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Nov 23, 2023
1 parent 0a73767 commit bc79810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/safety/Cleaner.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private CleaningVisitor(Element root, Element destination) {
this.destination = destination;
}

public void head(Node source, int depth) {
@Override public void head(Node source, int depth) {
if (source instanceof Element) {
Element sourceEl = (Element) source;

Expand All @@ -164,7 +164,7 @@ public void head(Node source, int depth) {
}
}

public void tail(Node source, int depth) {
@Override public void tail(Node source, int depth) {
if (source instanceof Element && safelist.isSafeTag(source.normalName())) {
destination = destination.parent(); // would have descended, so pop destination stack
}
Expand Down

0 comments on commit bc79810

Please sign in to comment.