From 575a10a4572b3bcb049461a6de90711a89cd7c7d Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Sat, 28 Dec 2024 11:40:11 -0500 Subject: [PATCH] Deprecate ValidatorUtils.ValidatorUtils() --- src/changes/changes.xml | 1 + .../apache/commons/validator/util/ValidatorUtils.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5f850f0ca..db5782e3f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -72,6 +72,7 @@ The type attribute can be add,update,fix,remove. Pick up maven-antrun-plugin version from parent POM org.apache:apache. Deprecate GenericTypeValidator.GenericTypeValidator(). Deprecate GenericValidator.GenericValidator(). + Deprecate ValidatorUtils.ValidatorUtils(). IBANValidator: add method validate with validation status DomainValidatorTest: added Maven profile to simplfy execution. diff --git a/src/main/java/org/apache/commons/validator/util/ValidatorUtils.java b/src/main/java/org/apache/commons/validator/util/ValidatorUtils.java index dfc15112a..94a43b7c0 100644 --- a/src/main/java/org/apache/commons/validator/util/ValidatorUtils.java +++ b/src/main/java/org/apache/commons/validator/util/ValidatorUtils.java @@ -153,4 +153,14 @@ public static String replace(final String value, final String key, final String return value.replace(key, replaceValue); } + /** + * Constructs a new instance. + * + * @deprecated Will be private in the next major version. + */ + @Deprecated + public ValidatorUtils() { + // empty + } + }