Skip to content

Commit bc79810

Browse files
committed
Specify overrides
1 parent 0a73767 commit bc79810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jsoup/safety/Cleaner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private CleaningVisitor(Element root, Element destination) {
137137
this.destination = destination;
138138
}
139139

140-
public void head(Node source, int depth) {
140+
@Override public void head(Node source, int depth) {
141141
if (source instanceof Element) {
142142
Element sourceEl = (Element) source;
143143

@@ -164,7 +164,7 @@ public void head(Node source, int depth) {
164164
}
165165
}
166166

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

0 commit comments

Comments
 (0)