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 2019/07/04 15:35:52 UTC

[commons-text] branch master updated: Use HTTPS links to commons.apache.org.

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 eeb6753  Use HTTPS links to commons.apache.org.
eeb6753 is described below

commit eeb6753798e8568c951a5f3cb2d6051c0a454fe1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 4 11:35:48 2019 -0400

    Use HTTPS links to commons.apache.org.
---
 pom.xml                                              |  2 +-
 .../apache/commons/text/RandomStringGenerator.java   |  2 +-
 .../org/apache/commons/text/TextRandomProvider.java  |  2 +-
 src/main/java/org/apache/commons/text/WordUtils.java | 20 ++++++++++----------
 .../commons/text/lookup/ConstantStringLookup.java    |  2 +-
 .../commons/text/translate/CsvTranslators.java       |  4 ++--
 .../release-notes/RELEASE-NOTES-1.0-beta-1.txt       |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.0.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.1.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.2.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.3.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.4.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.5.txt    |  4 ++--
 .../resources/release-notes/RELEASE-NOTES-1.6.txt    |  8 ++++----
 src/site/xdoc/index.xml                              |  2 +-
 src/site/xdoc/mail-lists.xml                         |  2 +-
 .../java/org/apache/commons/text/WordUtilsTest.java  | 20 ++++++++++----------
 17 files changed, 46 insertions(+), 46 deletions(-)

diff --git a/pom.xml b/pom.xml
index f720c57..3795d6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
   <version>1.8-SNAPSHOT</version>
   <name>Apache Commons Text</name>
   <description>Apache Commons Text is a library focused on algorithms working on strings.</description>
-  <url>http://commons.apache.org/proper/commons-text</url>
+  <url>https://commons.apache.org/proper/commons-text</url>
 
   <properties>
     <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
diff --git a/src/main/java/org/apache/commons/text/RandomStringGenerator.java b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
index 3a8814e..3e4a54c 100644
--- a/src/main/java/org/apache/commons/text/RandomStringGenerator.java
+++ b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
@@ -396,7 +396,7 @@ public final class RandomStringGenerator {
          * <p>
          * Overrides the default source of randomness.  It is highly
          * recommended that a random number generator library like
-         * <a href="http://commons.apache.org/proper/commons-rng/">Apache Commons RNG</a>
+         * <a href="https://commons.apache.org/proper/commons-rng/">Apache Commons RNG</a>
          * be used to provide the random number generation.
          * </p>
          *
diff --git a/src/main/java/org/apache/commons/text/TextRandomProvider.java b/src/main/java/org/apache/commons/text/TextRandomProvider.java
index 98c5f2d..e0d5fb3 100644
--- a/src/main/java/org/apache/commons/text/TextRandomProvider.java
+++ b/src/main/java/org/apache/commons/text/TextRandomProvider.java
@@ -20,7 +20,7 @@ package org.apache.commons.text;
  * <p>
  * TextRandomProvider implementations are used by {@link RandomStringGenerator}
  * as a source of randomness.  It is highly recommended that the
- * <a href="http://commons.apache.org/proper/commons-rng/">Apache Commons RNG</a>
+ * <a href="https://commons.apache.org/proper/commons-rng/">Apache Commons RNG</a>
  * library be used to provide the random number generation.
  * </p>
  *
diff --git a/src/main/java/org/apache/commons/text/WordUtils.java b/src/main/java/org/apache/commons/text/WordUtils.java
index 32f95c2..a41ac41 100644
--- a/src/main/java/org/apache/commons/text/WordUtils.java
+++ b/src/main/java/org/apache/commons/text/WordUtils.java
@@ -85,14 +85,14 @@ public class WordUtils {
      *   <td>"Here is one line of\ntext that is going\nto be wrapped after\n20 columns."</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here to jump to the commons website - http://commons.apache.org"</td>
+     *   <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
      *   <td>20</td>
-     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttp://commons.apache.org"</td>
+     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org"</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here, http://commons.apache.org, to jump to the commons website"</td>
+     *   <td>"Click here, https://commons.apache.org, to jump to the commons website"</td>
      *   <td>20</td>
-     *   <td>"Click here,\nhttp://commons.apache.org,\nto jump to the\ncommons website"</td>
+     *   <td>"Click here,\nhttps://commons.apache.org,\nto jump to the\ncommons website"</td>
      *  </tr>
      * </table>
      *
@@ -159,14 +159,14 @@ public class WordUtils {
      *   + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here to jump to the commons website - http://commons.apache.org"</td>
+     *   <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
      *   <td>20</td>
      *   <td>"\n"</td>
      *   <td>false</td>
-     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttp://commons.apache.org"</td>
+     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org"</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here to jump to the commons website - http://commons.apache.org"</td>
+     *   <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
      *   <td>20</td>
      *   <td>"\n"</td>
      *   <td>true</td>
@@ -247,15 +247,15 @@ public class WordUtils {
      *   + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here to jump to the commons website - http://commons.apache.org"</td>
+     *   <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
      *   <td>20</td>
      *   <td>"\n"</td>
      *   <td>false</td>
      *   <td>" "</td>
-     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttp://commons.apache.org"</td>
+     *   <td>"Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org"</td>
      *  </tr>
      *  <tr>
-     *   <td>"Click here to jump to the commons website - http://commons.apache.org"</td>
+     *   <td>"Click here to jump to the commons website - https://commons.apache.org"</td>
      *   <td>20</td>
      *   <td>"\n"</td>
      *   <td>true</td>
diff --git a/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java b/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
index 0dce838..f4f8dca 100644
--- a/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
@@ -125,7 +125,7 @@ class ConstantStringLookup extends AbstractStringLookup {
     /**
      * Loads the class with the specified name. If an application has special needs regarding the class loaders to be
      * used, it can hook in here. This implementation delegates to the {@code getClass()} method of Commons Lang's
-     * <code><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html">
+     * <code><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html">
      * ClassUtils</a></code>.
      *
      * @param className
diff --git a/src/main/java/org/apache/commons/text/translate/CsvTranslators.java b/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
index 8e61117..b6c11b3 100644
--- a/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
+++ b/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
@@ -25,11 +25,11 @@ import org.apache.commons.lang3.StringUtils;
 /**
  * This class holds inner classes for escaping/unescaping Comma Separated Values.
  * <p>
- * In general the use a high level API like <a href="http://commons.apache.org/proper/commons-csv/">Apache Commons
+ * In general the use a high level API like <a href="https://commons.apache.org/proper/commons-csv/">Apache Commons
  * CSV</a> should be preferred over these low level classes.
  * </p>
  *
- * @see <a href="http://commons.apache.org/proper/commons-csv/apidocs/index.html">Apache Commons CSV</a>
+ * @see <a href="https://commons.apache.org/proper/commons-csv/apidocs/index.html">Apache Commons CSV</a>
  */
 public final class CsvTranslators {
 
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.0-beta-1.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.0-beta-1.txt
index 56769a8..02788f0 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.0-beta-1.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.0-beta-1.txt
@@ -101,13 +101,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt
index 26b5d03..ef9b284 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.0.txt
@@ -137,13 +137,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.1.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.1.txt
index 06f7369..3d6d8f4 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.1.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.1.txt
@@ -169,13 +169,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.2.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.2.txt
index 7594348..9446e97 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.2.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.2.txt
@@ -211,13 +211,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.3.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.3.txt
index 8a1f9d4..9b0a916 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.3.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.3.txt
@@ -240,13 +240,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.4.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.4.txt
index 80b063f..b9e8f3f 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.4.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.4.txt
@@ -267,13 +267,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.5.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.5.txt
index 3375b04..c508316 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.5.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.5.txt
@@ -308,13 +308,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/resources/release-notes/RELEASE-NOTES-1.6.txt b/src/site/resources/release-notes/RELEASE-NOTES-1.6.txt
index b11c5af..c8d834e 100644
--- a/src/site/resources/release-notes/RELEASE-NOTES-1.6.txt
+++ b/src/site/resources/release-notes/RELEASE-NOTES-1.6.txt
@@ -20,12 +20,12 @@ o TEXT-145:  Add StringLookupFactory methods for the URL encoder and decoder str
 o TEXT-146:  org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup() should reuse a singleton instance
 o TEXT-147:  Add a Base64 encoder string lookup.
 
-Historical list of changes: http://commons.apache.org/proper/commons-text/changes-report.html
+Historical list of changes: https://commons.apache.org/proper/commons-text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how to submit bug reports,
 patches, or suggestions for improvement, see the Apache Apache Commons Text website:
 
-http://commons.apache.org/proper/commons-text
+https://commons.apache.org/proper/commons-text
 
 =============================================================================
 
@@ -341,13 +341,13 @@ o TEXT-51:   Remove RandomStringGenerator to be added back in the 1.1 release
 o TEXT-31:   Remove org.apache.commons.text.names, for later release than 1.0
 
 
-Historical list of changes: http://commons.apache.org/text/changes-report.html
+Historical list of changes: https://commons.apache.org/text/changes-report.html
 
 For complete information on Apache Commons Text, including instructions on how
 to submit bug reports, patches, or suggestions for improvement, see the Apache
 Apache Commons Text website:
 
-http://commons.apache.org/text/
+https://commons.apache.org/text/
 
 Have fun!
 -Apache Commons Text team
\ No newline at end of file
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 59a838a..1dae0b8 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -44,7 +44,7 @@ The <a href="source-repository.html">Git repository</a> can be
 <section name="Release Information">
 <p>The latest stable release of Text is 1.7. You may: </p>
 <ul>
-<li>Download the <a href="http://commons.apache.org/proper/commons-text/download_text.cgi">current version</a></li>
+<li>Download the <a href="https://commons.apache.org/proper/commons-text/download_text.cgi">current version</a></li>
 <li>Read the <a href="release-notes/RELEASE-NOTES-1.7.txt">release notes</a></li>
 </ul>
 <p>
diff --git a/src/site/xdoc/mail-lists.xml b/src/site/xdoc/mail-lists.xml
index 92d0245..546cea1 100644
--- a/src/site/xdoc/mail-lists.xml
+++ b/src/site/xdoc/mail-lists.xml
@@ -49,7 +49,7 @@ limitations under the License.
     <section name="Overview">
       <p>
         <a href="index.html">Apache Commons Text</a> shares mailing lists with all the other
-        <a href="http://commons.apache.org/components.html">Commons Components</a>.
+        <a href="https://commons.apache.org/components.html">Commons Components</a>.
         To make it easier for people to only read messages related to components they are interested in,
         the convention in Commons is to prefix the subject line of messages with the component's name,
         for example:
diff --git a/src/test/java/org/apache/commons/text/WordUtilsTest.java b/src/test/java/org/apache/commons/text/WordUtilsTest.java
index a8c93e1..03d8f6b 100644
--- a/src/test/java/org/apache/commons/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/WordUtilsTest.java
@@ -58,14 +58,14 @@ public class WordUtilsTest {
         assertThat(WordUtils.wrap(input, 20)).isEqualTo(expected);
 
         // long word at end
-        input = "Click here to jump to the commons website - http://commons.apache.org";
+        input = "Click here to jump to the commons website - https://commons.apache.org";
         expected = "Click here to jump" + systemNewLine + "to the commons" + systemNewLine + "website -" + systemNewLine
-                + "http://commons.apache.org";
+                + "https://commons.apache.org";
         assertThat(WordUtils.wrap(input, 20)).isEqualTo(expected);
 
         // long word in middle
-        input = "Click here, http://commons.apache.org, to jump to the commons website";
-        expected = "Click here," + systemNewLine + "http://commons.apache.org," + systemNewLine + "to jump to the"
+        input = "Click here, https://commons.apache.org, to jump to the commons website";
+        expected = "Click here," + systemNewLine + "https://commons.apache.org," + systemNewLine + "to jump to the"
                 + systemNewLine + "commons website";
         assertThat(WordUtils.wrap(input, 20)).isEqualTo(expected);
 
@@ -139,17 +139,17 @@ public class WordUtilsTest {
         assertThat(WordUtils.wrap(input, 20, "\n", true)).isEqualTo(expected);
 
         // difference because of long word
-        input = "Click here to jump to the commons website - http://commons.apache.org";
-        expected = "Click here to jump\nto the commons\nwebsite -\nhttp://commons.apache.org";
+        input = "Click here to jump to the commons website - https://commons.apache.org";
+        expected = "Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org";
         assertThat(WordUtils.wrap(input, 20, "\n", false)).isEqualTo(expected);
-        expected = "Click here to jump\nto the commons\nwebsite -\nhttp://commons.apach\ne.org";
+        expected = "Click here to jump\nto the commons\nwebsite -\nhttps://commons.apac\nhe.org";
         assertThat(WordUtils.wrap(input, 20, "\n", true)).isEqualTo(expected);
 
         // difference because of long word in middle
-        input = "Click here, http://commons.apache.org, to jump to the commons website";
-        expected = "Click here,\nhttp://commons.apache.org,\nto jump to the\ncommons website";
+        input = "Click here, https://commons.apache.org, to jump to the commons website";
+        expected = "Click here,\nhttps://commons.apache.org,\nto jump to the\ncommons website";
         assertThat(WordUtils.wrap(input, 20, "\n", false)).isEqualTo(expected);
-        expected = "Click here,\nhttp://commons.apach\ne.org, to jump to\nthe commons website";
+        expected = "Click here,\nhttps://commons.apac\nhe.org, to jump to\nthe commons website";
         assertThat(WordUtils.wrap(input, 20, "\n", true)).isEqualTo(expected);
     }