Skip to content

Commit

Permalink
add @deprecated annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bangert committed Oct 26, 2023
1 parent a36114c commit 9fad7d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jsoup/Jsoup.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,18 +365,22 @@ public static boolean isValid(String bodyHtml, Safelist safelist) {
return new Cleaner(safelist).isValidBodyHtml(bodyHtml);
}

@Deprecated
public static String clean(String bodyHtml, String baseUri, Whitelist whitelist, Document.OutputSettings outputSettings) {
return clean(bodyHtml, baseUri, whitelist.getSafelist(), outputSettings);
}

@Deprecated
public static boolean isValid(String bodyHtml, Whitelist whitelist) {
return isValid(bodyHtml, whitelist.getSafelist());
}

@Deprecated
public static String clean(String bodyHtml, Whitelist whitelist) {
return clean(bodyHtml, whitelist.getSafelist());
}

@Deprecated
public static String clean(String bodyHtml, String baseUri, Whitelist whitelist) {
return clean(bodyHtml, baseUri, whitelist.getSafelist());
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/jsoup/safety/Cleaner.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public Cleaner(Safelist safelist) {
this.safelist = safelist;
}

@Deprecated
public Cleaner(Whitelist whitelist) {
this(whitelist.getSafelist());
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/jsoup/safety/Whitelist.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.jsoup.nodes.Element;
import org.jsoup.safety.Safelist.TagName;

@Deprecated
public class Whitelist {

protected Safelist safelist;
Expand Down

0 comments on commit 9fad7d3

Please sign in to comment.