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/12/08 13:25:04 UTC

[commons-lang] branch master updated: Reuse factory method.

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 3ffa669  Reuse factory method.
3ffa669 is described below

commit 3ffa6698baf245f3f01008063f24e701f6e58440
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 8 08:24:59 2021 -0500

    Reuse factory method.
---
 src/main/java/org/apache/commons/lang3/tuple/Triple.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/tuple/Triple.java b/src/main/java/org/apache/commons/lang3/tuple/Triple.java
index 790bfb4..0cbf2ec 100644
--- a/src/main/java/org/apache/commons/lang3/tuple/Triple.java
+++ b/src/main/java/org/apache/commons/lang3/tuple/Triple.java
@@ -103,7 +103,7 @@ public abstract class Triple<L, M, R> implements Comparable<Triple<L, M, R>>, Se
      * @return a triple formed from the three parameters, not null
      */
     public static <L, M, R> Triple<L, M, R> of(final L left, final M middle, final R right) {
-        return new ImmutableTriple<>(left, middle, right);
+        return ImmutableTriple.of(left, middle, right);
     }
 
     /**