This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 1db70d54f fix typos and minor adjustments to the javadoc text of 
DateUtils.getNow()
1db70d54f is described below

commit 1db70d54fba53c0a7c5447669efea4e98748f5bb
Author: Jaikiran Pai <[email protected]>
AuthorDate: Sun Aug 9 22:20:56 2026 +0530

    fix typos and minor adjustments to the javadoc text of DateUtils.getNow()
---
 src/main/org/apache/tools/ant/util/DateUtils.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java 
b/src/main/org/apache/tools/ant/util/DateUtils.java
index ffaf68daa..9e2221749 100644
--- a/src/main/org/apache/tools/ant/util/DateUtils.java
+++ b/src/main/org/apache/tools/ant/util/DateUtils.java
@@ -405,11 +405,12 @@ public final class DateUtils {
     public static final String ENV_SOURCE_DATE_EPOCH = "SOURCE_DATE_EPOCH";
 
     /**
-     * Consults the magic properties {@link MagicNames.TSTAMP_NOW_ISO} and 
{@link MagicNames.TSTAMP_NOW} as well as the
-     * environment variable {@code SOURCE_DATE_EPOCH} for predefined values of 
"now" and falls back to {@code new
-     * Date()} if neiter is set.
+     * Consults {@linkplain #ENV_SOURCE_DATE_EPOCH SOURCE_DATE_EPOCH} 
environment variable and
+     * the magic properties {@link MagicNames#TSTAMP_NOW_ISO} and {@link 
MagicNames#TSTAMP_NOW}
+     * for predefined values of "now" and falls back to {@code new Date()} if 
neither is set.
      *
-     * <p>{@code SOURCE_DATE_EPOCH} takes precendence over {@link 
MagicNames.TSTAMP_NOW_ISO} which in turn takes precendence over {@link 
MagicNames.TSTAMP_NOW}.</p>
+     * <p>{@code SOURCE_DATE_EPOCH} takes precedence over {@link 
MagicNames#TSTAMP_NOW_ISO} which
+     * in turn takes precedence over {@link MagicNames#TSTAMP_NOW}.</p>
      *
      * @param project Project instance to use when looking up the magic 
properties.
      * @return a tuple of "now" and a boolean flag that indicates whether 
{@code SOURCE_DATE_EPOCH} has been set.

Reply via email to