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 2018/02/11 00:16:43 UTC

[text] [TEXT-113] Add an interpolator string lookup. Javadoc.

Repository: commons-text
Updated Branches:
  refs/heads/master 59984cafa -> 5768943f1


[TEXT-113] Add an interpolator string lookup. Javadoc.

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/5768943f
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/5768943f
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/5768943f

Branch: refs/heads/master
Commit: 5768943f14481d231bf1532cc88fe0a1c4c50fb8
Parents: 59984ca
Author: Gary Gregory <ga...@gmail.com>
Authored: Sat Feb 10 17:16:39 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sat Feb 10 17:16:39 2018 -0700

----------------------------------------------------------------------
 .../commons/text/lookup/EnvironmentVariableStringLookup.java     | 1 +
 .../apache/commons/text/lookup/ResourceBundleStringLookup.java   | 4 ++++
 .../apache/commons/text/lookup/SystemPropertyStringLookup.java   | 1 +
 3 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/5768943f/src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java b/src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java
index 31034ea..9f7a927 100644
--- a/src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java
@@ -41,6 +41,7 @@ public final class EnvironmentVariableStringLookup extends AbstractStringLookup
      * @param key
      *            the key to be looked up, may be null
      * @return The value of the environment variable.
+     * @see System#getenv(String)
      */
     @Override
     public String lookup(final String key) {

http://git-wip-us.apache.org/repos/asf/commons-text/blob/5768943f/src/main/java/org/apache/commons/text/lookup/ResourceBundleStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/ResourceBundleStringLookup.java b/src/main/java/org/apache/commons/text/lookup/ResourceBundleStringLookup.java
index 1d7b718..7f31cd1 100644
--- a/src/main/java/org/apache/commons/text/lookup/ResourceBundleStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/ResourceBundleStringLookup.java
@@ -22,6 +22,7 @@ import java.util.ResourceBundle;
 /**
  * Looks up keys from resource bundles.
  * 
+ * @see ResourceBundle
  * @since 1.3
  */
 public final class ResourceBundleStringLookup extends AbstractStringLookup {
@@ -46,6 +47,9 @@ public final class ResourceBundleStringLookup extends AbstractStringLookup {
      * @param key
      *            the key to be looked up, may be null
      * @return The value associated with the key.
+     * @see ResourceBundle
+     * @see ResourceBundle#getBundle(String)
+     * @see ResourceBundle#getString(String)
      */
     @Override
     public String lookup(final String key) {

http://git-wip-us.apache.org/repos/asf/commons-text/blob/5768943f/src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java b/src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java
index fa52869..1856b09 100644
--- a/src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java
@@ -41,6 +41,7 @@ public final class SystemPropertyStringLookup extends AbstractStringLookup {
      * @param key
      *            the key to be looked up, may be null
      * @return The value associated with the key.
+     * @see System#getProperty(String)
      */
     @Override
     public String lookup(final String key) {