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 2023/01/10 16:25:35 UTC
[commons-lang] branch master updated: Pick up maven-javadoc-plugin version from parent POM
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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 302d697f9 Pick up maven-javadoc-plugin version from parent POM
302d697f9 is described below
commit 302d697f9b8eff0cd453626dd57b467ed9650061
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jan 10 11:25:31 2023 -0500
Pick up maven-javadoc-plugin version from parent POM
---
pom.xml | 1 -
src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 49fb26021..b866cf67e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -634,7 +634,6 @@
<jmh.version>1.36</jmh.version>
<uberjar.name>benchmarks</uberjar.name>
- <commons.javadoc.version>3.4.1</commons.javadoc.version>
<commons.japicmp.version>0.16.0</commons.japicmp.version>
<commons.pmd.version>3.19.0</commons.pmd.version>
<commons.pmd-impl.version>6.52.0</commons.pmd-impl.version>
diff --git a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
index 1688c31e4..bc80d907e 100644
--- a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
@@ -21,6 +21,8 @@ import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
+import org.apache.commons.lang3.ObjectUtils;
+
/**
* Date and time formatting utilities and constants.
*
@@ -409,7 +411,7 @@ public class DateFormatUtils {
}
private static TimeZone getTimeZone(final Calendar calendar) {
- return calendar == null ? null : calendar.getTimeZone();
+ return ObjectUtils.get(calendar, Calendar::getTimeZone);
}
}