Skip to content

Commit

Permalink
HV-1740 Deprecate @SafeHtml for planned future removal
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Oct 18, 2019
1 parent 124b7dd commit 4194b02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Expand Up @@ -12,7 +12,9 @@

/**
* @author Marko Bekta
* @deprecated {@code @SafeHtml} support will be removed in a future version
*/
@Deprecated
public class SafeHtmlDef extends ConstraintDef<SafeHtmlDef, SafeHtml> {

public SafeHtmlDef() {
Expand Down
Expand Up @@ -34,12 +34,14 @@
* {@code body} tags to the used whitelist as required.
*
* @author George Gastaldi
* @deprecated {@code @SafeHtml} support will be removed in a future version
*/
@Documented
@Constraint(validatedBy = { })
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE })
@Retention(RUNTIME)
@Repeatable(List.class)
@Deprecated
public @interface SafeHtml {

String message() default "{org.hibernate.validator.constraints.SafeHtml.message}";
Expand Down
Expand Up @@ -27,7 +27,9 @@
* @author George Gastaldi
* @author Hardy Ferentschik
* @author Marko Bekhta
* @deprecated {@code @SafeHtml} support will be removed in a future version
*/
@Deprecated
public class SafeHtmlValidator implements ConstraintValidator<SafeHtml, CharSequence> {
private Whitelist whitelist;

Expand Down

0 comments on commit 4194b02

Please sign in to comment.