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 2021/06/23 13:59:42 UTC

[commons-lang] branch master updated: Add a @SuppressWarnings.

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 261a579  Add a @SuppressWarnings.
261a579 is described below

commit 261a5797bdfc3a5012c1475a69f80a12ab2a84cc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jun 23 09:59:38 2021 -0400

    Add a @SuppressWarnings.
---
 src/main/java/org/apache/commons/lang3/time/DurationUtils.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/commons/lang3/time/DurationUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationUtils.java
index e5a22a5..58d4358 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationUtils.java
@@ -48,6 +48,7 @@ public class DurationUtils {
      * @param duration The duration to pick apart.
      * @throws T See the function signature.
      */
+    @SuppressWarnings("boxing") // boxing unavoidable
     public static <T extends Throwable> void accept(final FailableBiConsumer<Long, Integer, T> consumer, final Duration duration)
             throws T {
         if (consumer != null && duration != null) {