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 8445d3a [LANG-1498] Add support of lambda value evaluation for defaulting methods #416. 8445d3a is described below commit 8445d3a9911ec67f07b76c0c44cc4c8ac0c16178 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Fri Nov 1 00:09:59 2019 -0400 [LANG-1498] Add support of lambda value evaluation for defaulting methods #416. A few more tests. --- src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java index 22f3e8e..84059f4 100644 --- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java @@ -118,6 +118,8 @@ public class ObjectUtilsTest { assertSame(o, ObjectUtils.defaultIfNull(o, dflt), "dflt was returned when o was not null"); assertSame(dflt, ObjectUtils.defaultIfNull(null, () -> dflt), "dflt was not returned when o was null"); assertSame(o, ObjectUtils.defaultIfNull(o, () -> dflt), "dflt was returned when o was not null"); + assertSame(o, ObjectUtils.defaultIfNull(FOO, () -> dflt), "dflt was returned when o was not null"); + assertSame(o, ObjectUtils.defaultIfNull("foo", () -> dflt), "dflt was returned when o was not null"); MutableInt callsCounter = new MutableInt(0); Supplier<Object> countingDefaultSupplier = () -> { callsCounter.increment();