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 2020/06/28 22:41:59 UTC
[commons-text] branch master updated: Simpler lambdas.
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-text.git
The following commit(s) were added to refs/heads/master by this push:
new 2599966 Simpler lambdas.
2599966 is described below
commit 259996691b8a3c5a3c386832fbb0426ae8cd1cec
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 28 18:41:52 2020 -0400
Simpler lambdas.
---
src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
index 8a983a3..41c8c40 100644
--- a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
+++ b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
@@ -252,7 +252,7 @@ public final class StringLookupFactory {
* </p>
*/
static final FunctionStringLookup<String> INSTANCE_ENVIRONMENT_VARIABLES = FunctionStringLookup
- .on(key -> System.getenv(key));
+ .on(System::getenv);
/**
* Defines the FunctionStringLookup singleton that always returns null.
@@ -263,7 +263,7 @@ public final class StringLookupFactory {
* Defines the FunctionStringLookup singleton for looking up system properties.
*/
static final FunctionStringLookup<String> INSTANCE_SYSTEM_PROPERTIES = FunctionStringLookup
- .on(key -> System.getProperty(key));
+ .on(System::getProperty);
/**
* Default lookup key for interpolation {@value #KEY_BASE64_DECODER}.