You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/06/12 12:25:04 UTC
(commons-validator) branch master updated: Use a Calendar constant instead of a magic number
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push:
new 6fe06057 Use a Calendar constant instead of a magic number
6fe06057 is described below
commit 6fe060570e4cf31575ee39b96edfe533b4823794
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 12 08:24:59 2025 -0400
Use a Calendar constant instead of a magic number
Make the code understandable without comment
From sigee (Dávid Szigecsán <>) in PR #301
---
src/changes/changes.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4e51e328..c777cc2c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -80,6 +80,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory, SpotBugs">Shared primitive variable "page" in one thread may not yield the value of the most recent write from another thread [org.apache.commons.validator.Field] At Field.java:[line 818] AT_STALE_THREAD_WRITE_OF_PRIMITIVE.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory, SpotBugs">Shared primitive variable "merged" in one thread may not yield the value of the most recent write from another thread [org.apache.commons.validator.FormSet] At FormSet.java:[line 302] AT_STALE_THREAD_WRITE_OF_PRIMITIVE.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Pick up exec-maven-plugin version from parent POM.</action>
+ <action type="fix" dev="ggregory" due-to="Dávid Szigecsán">Use a Calendar constant instead of a magic number in tests. Make the code understandable without comment.</action>
<!-- ADD -->
<action type="add" issue="VALIDATOR-497" dev="sjaranowski" due-to="Slawomir Jaranowski">IBANValidator: add method validate with validation status</action>
<action type="add" dev="sebb">DomainValidatorTest: added Maven profile to simplfy execution.</action>