Use HTTPS links to commons.apache.org.

This commit is contained in:
Gary Gregory 2019-07-04 10:46:19 -04:00
parent 326f86925d
commit d21a59baa5
31 changed files with 146 additions and 146 deletions

View File

@ -13,7 +13,7 @@ Lang 3.9 and onwards now targets Java 8.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -40,12 +40,12 @@ o LANG-1436: Consolidate the StringUtils equals and equalsIgnoreCase Javadoc and
o (doc) Fix javadoc for 'startIndex' parameter of StringUtils.join() methods. GitHub PR #412. Thanks to Andrei Troie aft90. o (doc) Fix javadoc for 'startIndex' parameter of StringUtils.join() methods. GitHub PR #412. Thanks to Andrei Troie aft90.
Historical list of changes: http://commons.apache.org/proper/commons-lang/changes-report.html Historical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html
For complete information on Apache Commons Lang, including instructions on how to submit bug reports, For complete information on Apache Commons Lang, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Apache Commons Lang website: patches, or suggestions for improvement, see the Apache Apache Commons Lang website:
http://commons.apache.org/proper/commons-lang/ https://commons.apache.org/proper/commons-lang/
============================================================================= =============================================================================
@ -64,7 +64,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -95,7 +95,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -155,7 +155,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -201,7 +201,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -231,7 +231,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1280,13 +1280,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -36,7 +36,7 @@
standard as to justify existence in java.lang. standard as to justify existence in java.lang.
</description> </description>
<url>http://commons.apache.org/proper/commons-lang/</url> <url>https://commons.apache.org/proper/commons-lang/</url>
<issueManagement> <issueManagement>
<system>jira</system> <system>jira</system>

View File

@ -769,7 +769,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" issue="LANG-351">Extension to ClassUtils: Obtain the primitive class from a wrapper.</action> <action type="add" issue="LANG-351">Extension to ClassUtils: Obtain the primitive class from a wrapper.</action>
<action type="fix" issue="LANG-399">Javadoc bugs - cannot find object.</action> <action type="fix" issue="LANG-399">Javadoc bugs - cannot find object.</action>
<action type="add" issue="LANG-345">Optimize HashCodeBuilder.append(Object).</action> <action type="add" issue="LANG-345">Optimize HashCodeBuilder.append(Object).</action>
<action type="fix" issue="LANG-385">http://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete.</action> <action type="fix" issue="LANG-385">https://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete.</action>
<action type="fix" issue="LANG-410">Ambiguous / confusing names in StringUtils replace* methods.</action> <action type="fix" issue="LANG-410">Ambiguous / confusing names in StringUtils replace* methods.</action>
<action type="add" issue="LANG-257">Add new splitByWholeSeparatorPreserveAllTokens() methods to StringUtils.</action> <action type="add" issue="LANG-257">Add new splitByWholeSeparatorPreserveAllTokens() methods to StringUtils.</action>
<action type="add" issue="LANG-356">Add getStartTime to StopWatch.</action> <action type="add" issue="LANG-356">Add getStartTime to StopWatch.</action>

View File

@ -47,7 +47,7 @@ Lang 3.9 and onwards now targets Java 8.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
$introduction.replaceAll("(?<!\015)\012", " $introduction.replaceAll("(?<!\015)\012", "
").replaceAll("(?m)^ +","") ").replaceAll("(?m)^ +","")

View File

@ -17,7 +17,7 @@
/** /**
* <p>Extends {@link java.math} for business mathematical classes. * <p>Extends {@link java.math} for business mathematical classes.
* This package is intended for business mathematical use, not scientific use. * This package is intended for business mathematical use, not scientific use.
* See <a href="http://commons.apache.org/math/">Commons Math</a> for a more complete set of mathematical classes. * See <a href="https://commons.apache.org/math/">Commons Math</a> for a more complete set of mathematical classes.
* These classes are immutable, and therefore thread-safe.</p> * These classes are immutable, and therefore thread-safe.</p>
* *
* <p>Although Commons Math also exists, some basic mathematical functions are contained within Lang. * <p>Although Commons Math also exists, some basic mathematical functions are contained within Lang.

View File

@ -83,14 +83,14 @@ public WordUtils() {
* <td>"Here is one line of\ntext that is going\nto be wrapped after\n20 columns."</td> * <td>"Here is one line of\ntext that is going\nto be wrapped after\n20 columns."</td>
* </tr> * </tr>
* <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>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>
* <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>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> * </tr>
* </table> * </table>
* *
@ -155,14 +155,14 @@ public static String wrap(final String str, final int wrapLength) {
* <td>"Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td> * <td>"Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td>
* </tr> * </tr>
* <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>20</td>
* <td>"\n"</td> * <td>"\n"</td>
* <td>false</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>
* <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>20</td>
* <td>"\n"</td> * <td>"\n"</td>
* <td>true</td> * <td>true</td>
@ -238,15 +238,15 @@ public static String wrap(final String str, final int wrapLength, final String n
* <td>"Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td> * <td>"Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."</td>
* </tr> * </tr>
* <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>20</td>
* <td>"\n"</td> * <td>"\n"</td>
* <td>false</td> * <td>false</td>
* <td>" "</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>
* <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>20</td>
* <td>"\n"</td> * <td>"\n"</td>
* <td>true</td> * <td>true</td>

View File

@ -39,7 +39,7 @@
<body class="composite"> <body class="composite">
<div id="banner"> <div id="banner">
<div id="bannerLeft"> <div id="bannerLeft">
<a href="http://commons.apache.org/" title="Apache Commons logo"> <a href="https://commons.apache.org/" title="Apache Commons logo">
<img src="./images/commons-logo.png" alt="Apache Commons logo"/> <img src="./images/commons-logo.png" alt="Apache Commons logo"/>
</a> </a>
</div><!-- id="bannerLeft" --> </div><!-- id="bannerLeft" -->

View File

@ -103,7 +103,7 @@ BUG FIXES IN 2.4:
* [LANG-372] - ToStringBuilder: MULTI_LINE_STYLE does not print anything from appendToString methods. * [LANG-372] - ToStringBuilder: MULTI_LINE_STYLE does not print anything from appendToString methods.
* [LANG-380] - infinite loop in Fraction.reduce when numerator == 0 * [LANG-380] - infinite loop in Fraction.reduce when numerator == 0
* [LANG-381] - NumberUtils.min(floatArray) returns wrong value if floatArray[0] happens to be Float.NaN * [LANG-381] - NumberUtils.min(floatArray) returns wrong value if floatArray[0] happens to be Float.NaN
* [LANG-385] - http://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete * [LANG-385] - https://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete
* [LANG-393] - EqualsBuilder don't compare BigDecimals correctly * [LANG-393] - EqualsBuilder don't compare BigDecimals correctly
* [LANG-399] - Javadoc bugs - cannot find object * [LANG-399] - Javadoc bugs - cannot find object
* [LANG-410] - Ambiguous / confusing names in StringUtils replace* methods * [LANG-410] - Ambiguous / confusing names in StringUtils replace* methods

View File

@ -31,7 +31,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
CHANGES IN 3.0.1 CHANGES IN 3.0.1
================ ================

View File

@ -31,7 +31,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the latest advice on upgrading, see the following page: For the latest advice on upgrading, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
ADDITIONS IN 3.0 ADDITIONS IN 3.0
================ ================

View File

@ -31,7 +31,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
CHANGES IN 3.1 CHANGES IN 3.1
================ ================

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
BUG FIXES BUG FIXES
=========== ===========
@ -404,13 +404,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
COMPATIBILITY WITH 3.1 COMPATIBILITY WITH 3.1
======================== ========================
@ -392,13 +392,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
FIXED BUGS FIXED BUGS
============ ============
@ -483,13 +483,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
NEW FEATURES NEW FEATURES
@ -496,13 +496,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
NEW FEATURES NEW FEATURES
============== ==============
@ -469,13 +469,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -29,7 +29,7 @@ at least requires Java 6.0.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
COMPATIBILITY COMPATIBILITY
@ -629,13 +629,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -927,13 +927,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -32,7 +32,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -62,7 +62,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1111,13 +1111,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -31,7 +31,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -59,12 +59,12 @@ o LANG-1346: Remove deprecation from RandomStringUtils
o LANG-1361: ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause() Thanks to Ana. o LANG-1361: ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause() Thanks to Ana.
Historical list of changes: http://commons.apache.org/proper/commons-lang/changes-report.html Historical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html
For complete information on Apache Commons Lang, including instructions on how to submit bug reports, For complete information on Apache Commons Lang, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Apache Commons Lang website: patches, or suggestions for improvement, see the Apache Apache Commons Lang website:
http://commons.apache.org/proper/commons-lang/ https://commons.apache.org/proper/commons-lang/
============================================================================= =============================================================================
@ -84,7 +84,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -114,7 +114,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1163,13 +1163,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -31,7 +31,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -47,12 +47,12 @@ o LANG-1419: Restore BundleSymbolicName for OSGi
Historical list of changes: http://commons.apache.org/proper/commons-lang/changes-report.html Historical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html
For complete information on Apache Commons Lang, including instructions on how to submit bug reports, For complete information on Apache Commons Lang, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Apache Commons Lang website: patches, or suggestions for improvement, see the Apache Apache Commons Lang website:
http://commons.apache.org/proper/commons-lang/ https://commons.apache.org/proper/commons-lang/
============================================================================= =============================================================================
@ -72,7 +72,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -132,7 +132,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -178,7 +178,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -208,7 +208,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1257,13 +1257,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -31,7 +31,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -74,12 +74,12 @@ o LANG-1405: Remove checks for java versions below the minimum supported one Tha
o LANG-1402: Null/index safe get methods for ArrayUtils Thanks to Mark Dacek. o LANG-1402: Null/index safe get methods for ArrayUtils Thanks to Mark Dacek.
Historical list of changes: http://commons.apache.org/proper/commons-lang/changes-report.html Historical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html
For complete information on Apache Commons Lang, including instructions on how to submit bug reports, For complete information on Apache Commons Lang, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Apache Commons Lang website: patches, or suggestions for improvement, see the Apache Apache Commons Lang website:
http://commons.apache.org/proper/commons-lang/ https://commons.apache.org/proper/commons-lang/
============================================================================= =============================================================================
@ -99,7 +99,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -145,7 +145,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -175,7 +175,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1224,13 +1224,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -13,7 +13,7 @@ Lang 3.9 and onwards now targets Java 8.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -40,12 +40,12 @@ o LANG-1436: Consolidate the StringUtils equals and equalsIgnoreCase Javadoc and
o (doc) Fix javadoc for 'startIndex' parameter of StringUtils.join() methods. GitHub PR #412. Thanks to Andrei Troie aft90. o (doc) Fix javadoc for 'startIndex' parameter of StringUtils.join() methods. GitHub PR #412. Thanks to Andrei Troie aft90.
Historical list of changes: http://commons.apache.org/proper/commons-lang/changes-report.html Historical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html
For complete information on Apache Commons Lang, including instructions on how to submit bug reports, For complete information on Apache Commons Lang, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Apache Commons Lang website: patches, or suggestions for improvement, see the Apache Apache Commons Lang website:
http://commons.apache.org/proper/commons-lang/ https://commons.apache.org/proper/commons-lang/
============================================================================= =============================================================================
@ -64,7 +64,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -95,7 +95,7 @@ Lang 3.0 and onwards now targets Java 7.0, making use of features that arrived w
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -155,7 +155,7 @@ variable arguments, autoboxing, concurrency and formatted output.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
Apache Commons Lang, a package of Java utility classes for the Apache Commons Lang, a package of Java utility classes for the
classes that are in java.lang's hierarchy, or are considered to be so classes that are in java.lang's hierarchy, or are considered to be so
@ -201,7 +201,7 @@ only required Java 1.6.
For the advice on upgrading from 2.x to 3.x, see the following page: For the advice on upgrading from 2.x to 3.x, see the following page:
http://commons.apache.org/lang/article3_0.html https://commons.apache.org/lang/article3_0.html
HIGHLIGHTS HIGHLIGHTS
========== ==========
@ -231,7 +231,7 @@ o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and
For more information see the Commons Text website: For more information see the Commons Text website:
http://commons.apache.org/text https://commons.apache.org/text
The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of The class org.apache.commons.lang3.CharEncoding has been deprecated in favor of
java.nio.charset.StandardCharsets. java.nio.charset.StandardCharsets.
@ -1280,13 +1280,13 @@ o LANG-715: CharSetUtils.squeeze() speedup.
o LANG-716: swapCase and *capitalize speedups. o LANG-716: swapCase and *capitalize speedups.
Historical list of changes: http://commons.apache.org/lang/changes-report.html Historical list of changes: https://commons.apache.org/lang/changes-report.html
For complete information on Commons Lang, including instructions on how to For complete information on Commons Lang, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the submit bug reports, patches, or suggestions for improvement, see the
Apache Commons Lang website: Apache Commons Lang website:
http://commons.apache.org/lang/ https://commons.apache.org/lang/
Have fun! Have fun!
-Apache Commons Lang team -Apache Commons Lang team

View File

@ -28,11 +28,11 @@ limitations under the License.
issue to see what went on in the year of development between Lang 2.3 and 2.4.</p> issue to see what went on in the year of development between Lang 2.3 and 2.4.</p>
<section name="Deprecations"> <section name="Deprecations">
<p>First, let us start with a couple of deprecations. As you can see in the release notes, we chose <p>First, let us start with a couple of deprecations. As you can see in the release notes, we chose
to deprecate the <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ObjectUtils.html#appendIdentityToString(java.lang.StringBuffer,%20java.lang.Object)"><code>ObjectUtils.appendIdentityToString(StringBuffer, Object)</code></a> method as its to deprecate the <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ObjectUtils.html#appendIdentityToString(java.lang.StringBuffer,%20java.lang.Object)"><code>ObjectUtils.appendIdentityToString(StringBuffer, Object)</code></a> method as its
null handling did not match its design (see <a href="http://issues.apache.org/jira/browse/LANG-360">LANG-360</a> null handling did not match its design (see <a href="http://issues.apache.org/jira/browse/LANG-360">LANG-360</a>
for more details. Instead users should use <code>ObjectUtils.identityToString(StringBuffer, Object)</code>.</p> for more details. Instead users should use <code>ObjectUtils.identityToString(StringBuffer, Object)</code>.</p>
<p>We also deprecated <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html#add(java.util.Date,%20int,%20int)"><code>DateUtils.add(java.util.Date, int, int)</code></a>. It should have been <code>private</code> <p>We also deprecated <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html#add(java.util.Date,%20int,%20int)"><code>DateUtils.add(java.util.Date, int, int)</code></a>. It should have been <code>private</code>
from the beginning; please let us know if you actually use it.</p> from the beginning; please let us know if you actually use it.</p>
</section> </section>
<section name="The build"> <section name="The build">
@ -42,15 +42,15 @@ successfully under Java 1.3, and that the classes compiled under Java 1.2. As it
</section> </section>
<section name="New classes"> <section name="New classes">
<p>Three new classes were added, so let's cover those next.</p> <p>Three new classes were added, so let's cover those next.</p>
<p>Firstly, we added an <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/math/IEEE754rUtils.html"><code>IEEE754rUtils</code></a> <p>Firstly, we added an <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/math/IEEE754rUtils.html"><code>IEEE754rUtils</code></a>
class to the <code>org.apache.commons.lang.math</code> package. class to the <code>org.apache.commons.lang.math</code> package.
This candidate for ugly name of the month was needed to add <a href="http://en.wikipedia.org/wiki/IEEE_754r#min_and_max">IEEE-754r</a> This candidate for ugly name of the month was needed to add <a href="http://en.wikipedia.org/wiki/IEEE_754r#min_and_max">IEEE-754r</a>
semantics for some of the <code>NumberUtils</code> methods. The relevant part of that semantics for some of the <code>NumberUtils</code> methods. The relevant part of that
IEEE specification in this case is the NaN handling for <code>min</code> and <code>max</code> methods, and IEEE specification in this case is the NaN handling for <code>min</code> and <code>max</code> methods, and
you can read more about it in <a href="http://issues.apache.org/jira/browse/LANG-381">LANG-381</a>. you can read more about it in <a href="http://issues.apache.org/jira/browse/LANG-381">LANG-381</a>.
</p> </p>
<p>Second and third on our newcomers list are the <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/text/ExtendedMessageFormat.html"><code>ExtendedMessageFormat</code></a> class and its peer <p>Second and third on our newcomers list are the <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/text/ExtendedMessageFormat.html"><code>ExtendedMessageFormat</code></a> class and its peer
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/text/FormatFactory.html"><code>FormatFactory</code></a> <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/text/FormatFactory.html"><code>FormatFactory</code></a>
interface, both found in the <code>org.apache.commons.lang.text</code> package.</p> interface, both found in the <code>org.apache.commons.lang.text</code> package.</p>
<p>Together they allow you to take the <code>java.text.MessageFormat</code> class further and insert your own formatting elements.</p> <p>Together they allow you to take the <code>java.text.MessageFormat</code> class further and insert your own formatting elements.</p>
<p> <p>
@ -132,42 +132,42 @@ cases as a <em>true</em> drop-in replacement.
<section name="New methods"> <section name="New methods">
<p>There were 58 new methods added to existing Commons Lang classes. Going through each one, one at a time would be dull, <p>There were 58 new methods added to existing Commons Lang classes. Going through each one, one at a time would be dull,
and fortunately there are some nice groupings that we can discuss instead:</p> and fortunately there are some nice groupings that we can discuss instead:</p>
<p>CharSet <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/CharSet.html#getInstance(java.lang.String[])">getInstance(String[])</a> adds an additional builder method by which you can build a CharSet from multiple sets of characters at the same time. If you weren't aware of the CharSet class, it holds a set of characters created by a simple pattern language allowing constructs such as <code>"a-z"</code> and <code>"^a"</code> (everything but 'a'). It's most used by the CharSetUtils class, and came out of CharSetUtils.translate, a simple variant of the UNIX tr command.</p> <p>CharSet <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/CharSet.html#getInstance(java.lang.String[])">getInstance(String[])</a> adds an additional builder method by which you can build a CharSet from multiple sets of characters at the same time. If you weren't aware of the CharSet class, it holds a set of characters created by a simple pattern language allowing constructs such as <code>"a-z"</code> and <code>"^a"</code> (everything but 'a'). It's most used by the CharSetUtils class, and came out of CharSetUtils.translate, a simple variant of the UNIX tr command.</p>
<p>ClassUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html">canonical name</a> methods are akin to the non '<code>Canonical</code>' methods, except they work with the more human readable <code>int[]</code> type names rather than the JVM versions of <code>[I</code>. This makes them useful for parsing input from developer's configuration files. </p> <p>ClassUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html">canonical name</a> methods are akin to the non '<code>Canonical</code>' methods, except they work with the more human readable <code>int[]</code> type names rather than the JVM versions of <code>[I</code>. This makes them useful for parsing input from developer's configuration files. </p>
<p>ClassUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html#toClass(java.lang.Object[])">toClass(String[])</a> is very easy to explain - it calls <code>toClass</code> on each <code>Object</code> in the array and returns an array of <code>Class</code> objects.</p> <p>ClassUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html#toClass(java.lang.Object[])">toClass(String[])</a> is very easy to explain - it calls <code>toClass</code> on each <code>Object</code> in the array and returns an array of <code>Class</code> objects.</p>
<p>ClassUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html#wrappersToPrimitives(java.lang.Class[])">wrapper-&gt;primitive</a> conversions are the reflection of the pre-existing <code>primitiveToWrapper</code> methods. Again easy to explain, they turn an array of <code>Integer</code> into an array of <code>int[]</code>.</p> <p>ClassUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ClassUtils.html#wrappersToPrimitives(java.lang.Class[])">wrapper-&gt;primitive</a> conversions are the reflection of the pre-existing <code>primitiveToWrapper</code> methods. Again easy to explain, they turn an array of <code>Integer</code> into an array of <code>int[]</code>.</p>
<p>ObjectUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ObjectUtils.html#identityToString(java.lang.StringBuffer,%20java.lang.Object)">identityToString(StringBuffer, Object)</a> is the StringBuffer variant of the pre-existing <code>identityToString</code> method. In case you've not met that before, it produces the toString that would have been produced by an Object if it hadn't been overridden.</p> <p>ObjectUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ObjectUtils.html#identityToString(java.lang.StringBuffer,%20java.lang.Object)">identityToString(StringBuffer, Object)</a> is the StringBuffer variant of the pre-existing <code>identityToString</code> method. In case you've not met that before, it produces the toString that would have been produced by an Object if it hadn't been overridden.</p>
<p>StringEscapeUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeCsv(java.lang.String)">CSV methods</a> are a new addition to our range of simple parser/printers. These, quite as expected, parse and unparse CSV text as per <a href="http://tools.ietf.org/html/rfc4180">RFC-4180</a>.</p> <p>StringEscapeUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeCsv(java.lang.String)">CSV methods</a> are a new addition to our range of simple parser/printers. These, quite as expected, parse and unparse CSV text as per <a href="http://tools.ietf.org/html/rfc4180">RFC-4180</a>.</p>
<p>StringUtils has a host of new methods, as always, and we'll leave these for later.</p> <p>StringUtils has a host of new methods, as always, and we'll leave these for later.</p>
<p>WordUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/WordUtils.html#abbreviate(java.lang.String,%20int,%20int,%20java.lang.String)">abbreviate</a> finds the first space after the lower limit and abbreviates the text.</p> <p>WordUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/WordUtils.html#abbreviate(java.lang.String,%20int,%20int,%20java.lang.String)">abbreviate</a> finds the first space after the lower limit and abbreviates the text.</p>
<p>math.<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/math/IntRange.html#toArray()">IntRange</a>/<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/math/LongRange.html#toArray()">LongRange.toArray</a> turn the range into an array of primitive <code>int</code>/<code>long</code>s contained in the range.</p> <p>math.<a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/math/IntRange.html#toArray()">IntRange</a>/<a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/math/LongRange.html#toArray()">LongRange.toArray</a> turn the range into an array of primitive <code>int</code>/<code>long</code>s contained in the range.</p>
<p>text.StrMatch.<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/text/StrMatcher.html#isMatch(char[],%20int)">isMatch(char[], int)</a> is a helper method for checking whether there was a match with the StrMatcher objects.</p> <p>text.StrMatch.<a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/text/StrMatcher.html#isMatch(char[],%20int)">isMatch(char[], int)</a> is a helper method for checking whether there was a match with the StrMatcher objects.</p>
<p>time.DateFormatUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateFormatUtils.html">format(Calendar, ...)</a> provide Calendar variants for the pre-existing format methods. If these are new to you, they are helper methods to formatting a date.</p> <p>time.DateFormatUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateFormatUtils.html">format(Calendar, ...)</a> provide Calendar variants for the pre-existing format methods. If these are new to you, they are helper methods to formatting a date.</p>
<p>time.DateUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">getFragment*</a> methods are used to splice the time element out of Date. If you have <code>2008/12/13 14:57</code>, then these could, for example, pull out the 13.</p> <p>time.DateUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">getFragment*</a> methods are used to splice the time element out of Date. If you have <code>2008/12/13 14:57</code>, then these could, for example, pull out the 13.</p>
<p>time.DateUtils <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">setXxx methods</a> round off our walk through the methods - the setXxx variant of the existing addXxx helper methods.</p> <p>time.DateUtils <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">setXxx methods</a> round off our walk through the methods - the setXxx variant of the existing addXxx helper methods.</p>
</section> </section>
<section name="StringUtils methods"> <section name="StringUtils methods">
<p>The <code>StringUtils</code> class is a little large, isn't it? Sorry, but it's gotten bigger. <p>The <code>StringUtils</code> class is a little large, isn't it? Sorry, but it's gotten bigger.
</p> </p>
<ul> <ul>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#containsOnly(java.lang.String,%20char[])">boolean containsAny(String, char[])</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#containsOnly(java.lang.String,%20char[])">boolean containsAny(String, char[])</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#containsOnly(java.lang.String,%20java.lang.String)">boolean containsAny(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#containsOnly(java.lang.String,%20java.lang.String)">boolean containsAny(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#endsWith(java.lang.String,%20java.lang.String)">boolean endsWith(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#endsWith(java.lang.String,%20java.lang.String)">boolean endsWith(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#endsWithIgnoreCase(java.lang.String,%20java.lang.String)">boolean endsWithIgnoreCase(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#endsWithIgnoreCase(java.lang.String,%20java.lang.String)">boolean endsWithIgnoreCase(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#getCommonPrefix(java.lang.String[])">String getCommonPrefix(String[])</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#getCommonPrefix(java.lang.String[])">String getCommonPrefix(String[])</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#indexOfDifference(java.lang.String[])">int indexOfDifference(String[])</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#indexOfDifference(java.lang.String[])">int indexOfDifference(String[])</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#length(java.lang.String)">int length(String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#length(java.lang.String)">int length(String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#removeEndIgnoreCase(java.lang.String,%20java.lang.String)">String removeEndIgnoreCase(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#removeEndIgnoreCase(java.lang.String,%20java.lang.String)">String removeEndIgnoreCase(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#removeStartIgnoreCase(java.lang.String,%20java.lang.String)">String removeStartIgnoreCase(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#removeStartIgnoreCase(java.lang.String,%20java.lang.String)">String removeStartIgnoreCase(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#replaceEach(java.lang.String,%20java.lang.String[],%20java.lang.String[])">String replaceEach(String, String[], String[])</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#replaceEach(java.lang.String,%20java.lang.String[],%20java.lang.String[])">String replaceEach(String, String[], String[])</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#replaceEachRepeatedly(java.lang.String,%20java.lang.String[],%20java.lang.String[])">String replaceEachRepeatedly(String, String[], String[])</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#replaceEachRepeatedly(java.lang.String,%20java.lang.String[],%20java.lang.String[])">String replaceEachRepeatedly(String, String[], String[])</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByCharacterType(java.lang.String)">String[] splitByCharacterType(String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByCharacterType(java.lang.String)">String[] splitByCharacterType(String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByCharacterTypeCamelCase(java.lang.String)">String[] splitByCharacterTypeCamelCase(String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByCharacterTypeCamelCase(java.lang.String)">String[] splitByCharacterTypeCamelCase(String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByWholeSeparatorPreserveAllTokens(java.lang.String,%20java.lang.String)">String[] splitByWholeSeparatorPreserveAllTokens(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByWholeSeparatorPreserveAllTokens(java.lang.String,%20java.lang.String)">String[] splitByWholeSeparatorPreserveAllTokens(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByWholeSeparatorPreserveAllTokens(java.lang.String,%20java.lang.String,%20int)">String[] splitByWholeSeparatorPreserveAllTokens(String, String, int)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#splitByWholeSeparatorPreserveAllTokens(java.lang.String,%20java.lang.String,%20int)">String[] splitByWholeSeparatorPreserveAllTokens(String, String, int)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#startsWith(java.lang.String,%20java.lang.String)">boolean startsWith(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#startsWith(java.lang.String,%20java.lang.String)">boolean startsWith(String, String)</a></li>
<li><a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#startsWithIgnoreCase(java.lang.String,%20java.lang.String)">boolean startsWithIgnoreCase(String, String)</a></li> <li><a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#startsWithIgnoreCase(java.lang.String,%20java.lang.String)">boolean startsWithIgnoreCase(String, String)</a></li>
</ul> </ul>
<p>Hopefully they are in many cases self-describing. Rather than spend a lot of time describing them, we'll let you read the Javadoc of the ones that interest you.</p> <p>Hopefully they are in many cases self-describing. Rather than spend a lot of time describing them, we'll let you read the Javadoc of the ones that interest you.</p>
@ -186,7 +186,7 @@ and fortunately there are some nice groupings that we can discuss instead:</p>
</section> </section>
<section name="So long, farewell..."> <section name="So long, farewell...">
<p>Hopefully that was all of interest. Don't forget to download <a href="http://commons.apache.org/lang/download_lang.cgi">Lang 2.4</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 2.4. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p> <p>Hopefully that was all of interest. Don't forget to download <a href="https://commons.apache.org/lang/download_lang.cgi">Lang 2.4</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 2.4. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p>
</section> </section>
</section> </section>

View File

@ -48,19 +48,19 @@ The classes are: </p>
</section> </section>
<section name="New fields"> <section name="New fields">
<p>With both Java 7 and Windows 7 becoming a reality, <p>With both Java 7 and Windows 7 becoming a reality,
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/SystemUtils.html">SystemUtils</a> was updated to <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/SystemUtils.html">SystemUtils</a> was updated to
provide boolean fields for both versions. </p> provide boolean fields for both versions. </p>
</section> </section>
<section name="New methods"> <section name="New methods">
<p>There were 66 new methods added to existing Commons Lang classes. </p> <p>There were 66 new methods added to existing Commons Lang classes. </p>
<p>The <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/ArrayUtils.html">ArrayUtils</a> class <p>The <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/ArrayUtils.html">ArrayUtils</a> class
received two new types of methods. Firstly, a boolean isNotEmpty(array) set of methods, identifying whether the particular received two new types of methods. Firstly, a boolean isNotEmpty(array) set of methods, identifying whether the particular
array is null or an empty sized array. This makes it the inverse of the existing isEmpty(array) methods. Secondly, an array array is null or an empty sized array. This makes it the inverse of the existing isEmpty(array) methods. Secondly, an array
nullToEmpty(array) set of methods that converts null or empty arrays to a singleton empty array already available from the nullToEmpty(array) set of methods that converts null or empty arrays to a singleton empty array already available from the
ArrayUtils class. Non null/empty arrays are left untouched. </p> ArrayUtils class. Non null/empty arrays are left untouched. </p>
<p>The constructor for the <p>The constructor for the
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/CharRange.html">CharRange</a> class is somewhat <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/CharRange.html">CharRange</a> class is somewhat
confusing. It takes a boolean parameter that when set to true means the CharRange is negated. To make code easier to read, the confusing. It takes a boolean parameter that when set to true means the CharRange is negated. To make code easier to read, the
following static helper methods were added: </p> following static helper methods were added: </p>
<ul> <ul>
@ -71,18 +71,18 @@ following static helper methods were added: </p>
</ul> </ul>
<p>An iterator() method was also added to provide another way of walking the range. </p> <p>An iterator() method was also added to provide another way of walking the range. </p>
<p>The <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/EqualsBuilder.html">EqualsBuilder</a> <p>The <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/EqualsBuilder.html">EqualsBuilder</a>
obtained a new reset() method to allow for reuse, while the obtained a new reset() method to allow for reuse, while the
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/HashCodeBuilder.html">HashCodeBuilder</a> <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/HashCodeBuilder.html">HashCodeBuilder</a>
received a hashCode() method that returns the built hash code instead of the natural hash code of the builder object itself. It received a hashCode() method that returns the built hash code instead of the natural hash code of the builder object itself. It
doesn't really matter what the builder chooses to use as a hash code and this stops accidental use of the hashCode() instead of doesn't really matter what the builder chooses to use as a hash code and this stops accidental use of the hashCode() instead of
toHashCode() method from causing lots of pain. </p> toHashCode() method from causing lots of pain. </p>
<p>Helper isFalse(), isTrue() and toBoolean() methods were added to <p>Helper isFalse(), isTrue() and toBoolean() methods were added to
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/mutable/MutableBoolean.html">MutableBoolean</a>, <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/mutable/MutableBoolean.html">MutableBoolean</a>,
while the other mutable classes received String argument constructors. </p> while the other mutable classes received String argument constructors. </p>
<p>Lastly, the <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">DateUtils</a> <p>Lastly, the <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html">DateUtils</a>
class received a new ceiling set of methods to truncate upwards, and a parseDateStrictly method to parse a Date with the class received a new ceiling set of methods to truncate upwards, and a parseDateStrictly method to parse a Date with the
supplied DateFormat classes leniency set to false. </p> supplied DateFormat classes leniency set to false. </p>
@ -90,7 +90,7 @@ supplied DateFormat classes leniency set to false. </p>
<section name="StringUtils methods"> <section name="StringUtils methods">
<p>As with 2.4, the <p>As with 2.4, the
<a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html">StringUtils</a> class has <a href="https://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html">StringUtils</a> class has
grown and we cover its new methods in its own section. </p> grown and we cover its new methods in its own section. </p>
<ul> <ul>
<li>abbreviateMiddle(String, String, int);String - This method turns aRatherLongNameSuchAsAFileName into 'aRatherLo...AFileName'. <li>abbreviateMiddle(String, String, int);String - This method turns aRatherLongNameSuchAsAFileName into 'aRatherLo...AFileName'.
@ -126,7 +126,7 @@ ToStringStyle meant that containers could end up with memory leaks. This was rew
</section> </section>
<section name="So long, farewell..."> <section name="So long, farewell...">
<p>Hopefully that was all of interest. Don't forget to download <a href="http://commons.apache.org/lang/download_lang.cgi">Lang 2.5</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 2.5. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p> <p>Hopefully that was all of interest. Don't forget to download <a href="https://commons.apache.org/lang/download_lang.cgi">Lang 2.5</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 2.5. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p>
</section> </section>
</section> </section>

View File

@ -198,7 +198,7 @@ general-purpose mechanism to raise an <code>IllegalArgumentException</code>.</li
<!-- <!--
<section name="What next???"> TODO: Add Beta info. <section name="What next???"> TODO: Add Beta info.
<p>Hopefully that was all of interest. Don't forget to download <a href="http://commons.apache.org/lang/download_lang.cgi">Lang 3.0</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 3.0 and your groupId to org.apache.commons. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p> <p>Hopefully that was all of interest. Don't forget to download <a href="https://commons.apache.org/lang/download_lang.cgi">Lang 3.0</a>, or, for the Maven repository users, upgrade your &lt;version&gt; tag to 3.0 and your groupId to org.apache.commons. Please feel free to raise any questions you might have on the <a href="mail-lists.html">mailing lists</a>, and report bugs or enhancements in the <a href="issue-tracking.html">issue tracker</a>.</p>
</section> </section>
--> -->

View File

@ -54,7 +54,7 @@ limitations under the License.
</p> </p>
<p> <p>
Further details can be found in the Further details can be found in the
<a href="http://commons.apache.org/building.html">commons build instructions</a>. <a href="https://commons.apache.org/building.html">commons build instructions</a>.
</p> </p>
</section> </section>
<!-- ================================================== --> <!-- ================================================== -->

View File

@ -63,7 +63,7 @@ The <a href="scm.html">git repository</a> can be
<section name="Release Information"> <section name="Release Information">
<p>The latest stable release of Lang is 3.9. You may: </p> <p>The latest stable release of Lang is 3.9. You may: </p>
<ul> <ul>
<li>Download <a href="http://commons.apache.org/lang/download_lang.cgi">3.9</a></li> <li>Download <a href="https://commons.apache.org/lang/download_lang.cgi">3.9</a></li>
<li>Read the <a href="release-notes/RELEASE-NOTES-3.9.txt">3.9 release notes</a></li> <li>Read the <a href="release-notes/RELEASE-NOTES-3.9.txt">3.9 release notes</a></li>
<li>Examine the <a href="article3_0.html">2.x to 3.0 upgrade notes</a></li> <li>Examine the <a href="article3_0.html">2.x to 3.0 upgrade notes</a></li>
<li>Compare major versions via the <a href="lang2-lang3-clirr-report.html">Lang2 to Lang3 Clirr report</a></li> <li>Compare major versions via the <a href="lang2-lang3-clirr-report.html">Lang2 to Lang3 Clirr report</a></li>

View File

@ -49,7 +49,7 @@ limitations under the License.
<section name="Overview"> <section name="Overview">
<p> <p>
<a href="index.html">Apache Commons Lang</a> shares mailing lists with all the other <a href="index.html">Apache Commons Lang</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, 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, the convention in Commons is to prefix the subject line of messages with the component's name,
for example: for example:

View File

@ -110,7 +110,7 @@ BUG FIXES IN 2.4:
* [LANG-372] - ToStringBuilder: MULTI_LINE_STYLE does not print anything from appendToString methods. * [LANG-372] - ToStringBuilder: MULTI_LINE_STYLE does not print anything from appendToString methods.
* [LANG-380] - infinite loop in Fraction.reduce when numerator == 0 * [LANG-380] - infinite loop in Fraction.reduce when numerator == 0
* [LANG-381] - NumberUtils.min(floatArray) returns wrong value if floatArray[0] happens to be Float.NaN * [LANG-381] - NumberUtils.min(floatArray) returns wrong value if floatArray[0] happens to be Float.NaN
* [LANG-385] - http://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete * [LANG-385] - https://commons.apache.org/lang/developerguide.html "Building" section is incorrect and incomplete
* [LANG-393] - EqualsBuilder don't compare BigDecimals correctly * [LANG-393] - EqualsBuilder don't compare BigDecimals correctly
* [LANG-399] - Javadoc bugs - cannot find object * [LANG-399] - Javadoc bugs - cannot find object
* [LANG-410] - Ambiguous / confusing names in StringUtils replace* methods * [LANG-410] - Ambiguous / confusing names in StringUtils replace* methods

View File

@ -61,14 +61,14 @@ public void testWrap_StringInt() {
assertEquals(expected, WordUtils.wrap(input, 20)); assertEquals(expected, WordUtils.wrap(input, 20));
// long word at end // 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 expected = "Click here to jump" + systemNewLine + "to the commons" + systemNewLine
+ "website -" + systemNewLine + "http://commons.apache.org"; + "website -" + systemNewLine + "https://commons.apache.org";
assertEquals(expected, WordUtils.wrap(input, 20)); assertEquals(expected, WordUtils.wrap(input, 20));
// long word in middle // long word in middle
input = "Click here, http://commons.apache.org, to jump to the commons website"; input = "Click here, https://commons.apache.org, to jump to the commons website";
expected = "Click here," + systemNewLine + "http://commons.apache.org," + systemNewLine expected = "Click here," + systemNewLine + "https://commons.apache.org," + systemNewLine
+ "to jump to the" + systemNewLine + "commons website"; + "to jump to the" + systemNewLine + "commons website";
assertEquals(expected, WordUtils.wrap(input, 20)); assertEquals(expected, WordUtils.wrap(input, 20));
@ -142,17 +142,17 @@ public void testWrap_StringIntStringBoolean() {
assertEquals(expected, WordUtils.wrap(input, 20, "\n", true)); assertEquals(expected, WordUtils.wrap(input, 20, "\n", true));
// difference because of long word // difference because of long word
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\nto the commons\nwebsite -\nhttp://commons.apache.org"; expected = "Click here to jump\nto the commons\nwebsite -\nhttps://commons.apache.org";
assertEquals(expected, WordUtils.wrap(input, 20, "\n", false)); assertEquals(expected, WordUtils.wrap(input, 20, "\n", false));
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";
assertEquals(expected, WordUtils.wrap(input, 20, "\n", true)); assertEquals(expected, WordUtils.wrap(input, 20, "\n", true));
// difference because of long word in middle // difference because of long word in middle
input = "Click here, http://commons.apache.org, to jump to the commons website"; input = "Click here, https://commons.apache.org, to jump to the commons website";
expected = "Click here,\nhttp://commons.apache.org,\nto jump to the\ncommons website"; expected = "Click here,\nhttps://commons.apache.org,\nto jump to the\ncommons website";
assertEquals(expected, WordUtils.wrap(input, 20, "\n", false)); assertEquals(expected, WordUtils.wrap(input, 20, "\n", false));
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";
assertEquals(expected, WordUtils.wrap(input, 20, "\n", true)); assertEquals(expected, WordUtils.wrap(input, 20, "\n", true));
} }