diff options
author | Marc Wrobel <marc.wrobel@gmail.com> | 2022-08-21 21:29:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 15:29:18 -0400 |
commit | 19bad1a6cb7430b573c21962ab2e013ef537a8a0 (patch) | |
tree | de93fa0dcd99573987af55a126abbb1c6c5534a4 /src/test | |
parent | 6de0fc1ae5b72af4eb64fb877d81acbc22319193 (diff) | |
download | apache-commons-lang-19bad1a6cb7430b573c21962ab2e013ef537a8a0.tar.gz |
Fix links in Javadoc and documentations (#926)
* Fix links in javadoc and documentations
- fix broken links (using their new URL, an alternative URL or a Wayback Machine link),
- use direct links instead of redirects,
- upgrade javadoc links to version 8,
- use HTTPS where possible.
* Update EqualsBuilder.java
Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
Diffstat (limited to 'src/test')
9 files changed, 29 insertions, 29 deletions
diff --git a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java index 4534206f7..11672c6ce 100644 --- a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java @@ -1436,7 +1436,7 @@ public class ClassUtilsTest extends AbstractLangTest { assertNull(ClassUtils.primitiveToWrapper(null), "null -> null"); } - // Show the Java bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957 + // Show the Java bug: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4071957 // We may have to delete this if a JDK fixes the bug. @Test public void testShowJavaBug() throws Exception { diff --git a/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java b/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java index b035106b7..fecd7ad70 100644 --- a/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java @@ -204,7 +204,7 @@ public class LocaleUtilsTest extends AbstractLangTest { assertValidToLocale("us_EN_A", "us", "EN", "A"); assertValidToLocale("us-EN-A", "us", "EN", "A"); // this isn't pretty, but was caused by a jdk bug it seems - // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4210525 + // https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4210525 if (SystemUtils.isJavaVersionAtLeast(JAVA_1_4)) { assertValidToLocale("us_EN_a", "us", "EN", "a"); assertValidToLocale("us_EN_SFsafdFDsdfF", "us", "EN", "SFsafdFDsdfF"); diff --git a/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java index 5b353519a..87e12e108 100644 --- a/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java @@ -318,7 +318,7 @@ public class StringEscapeUtilsTest extends AbstractLangTest { /** * Tests Supplementary characters. * <p> - * From http://www.w3.org/International/questions/qa-escapes + * From https://www.w3.org/International/questions/qa-escapes * </p> * <blockquote> * Supplementary characters are those Unicode characters that have code points higher than the characters in @@ -327,7 +327,7 @@ public class StringEscapeUtilsTest extends AbstractLangTest { * - you must use the single, code point value for that character. For example, use &#x233B4; rather than * &#xD84C;&#xDFB4;. * </blockquote> - * @see <a href="http://www.w3.org/International/questions/qa-escapes">Using character escapes in markup and CSS</a> + * @see <a href="https://www.w3.org/International/questions/qa-escapes">Using character escapes in markup and CSS</a> * @see <a href="https://issues.apache.org/jira/browse/LANG-728">LANG-728</a> */ @Test @@ -344,7 +344,7 @@ public class StringEscapeUtilsTest extends AbstractLangTest { @Test public void testEscapeXmlAllCharacters() { - // http://www.w3.org/TR/xml/#charsets says: + // https://www.w3.org/TR/xml/#charsets says: // Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, // excluding the surrogate blocks, FFFE, and FFFF. */ final CharSequenceTranslator escapeXml = StringEscapeUtils.ESCAPE_XML @@ -374,8 +374,8 @@ public class StringEscapeUtilsTest extends AbstractLangTest { "Supplementary characters mixed with basic characters should be decoded correctly"); } - // Tests issue #38569 - // https://issues.apache.org/bugzilla/show_bug.cgi?id=38569 + // Tests issue LANG-150 + // https://issues.apache.org/jira/browse/LANG-150 @Test public void testStandaloneAmphersand() { assertEquals("<P&O>", StringEscapeUtils.unescapeHtml4("<P&O>")); diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsContainsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsContainsTest.java index 4ad6519b1..b152a8df2 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsContainsTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsContainsTest.java @@ -61,7 +61,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContains_StringWithBadSupplementaryChars() { @@ -76,7 +76,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContains_StringWithSupplementaryChars() { @@ -105,7 +105,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsAny_StringCharArrayWithBadSupplementaryChars() { @@ -120,7 +120,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsAny_StringCharArrayWithSupplementaryChars() { @@ -200,7 +200,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsAny_StringWithBadSupplementaryChars() { @@ -214,7 +214,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsAny_StringWithSupplementaryChars() { @@ -315,7 +315,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsNone_CharArrayWithBadSupplementaryChars() { @@ -330,7 +330,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsNone_CharArrayWithSupplementaryChars() { @@ -372,7 +372,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsNone_StringWithBadSupplementaryChars() { @@ -387,7 +387,7 @@ public class StringUtilsContainsTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testContainsNone_StringWithSupplementaryChars() { diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java index 8b8c1585f..456018f0e 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java @@ -369,7 +369,7 @@ public class StringUtilsEqualsIndexOfTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testIndexOfAny_StringCharArrayWithSupplementaryChars() { @@ -415,7 +415,7 @@ public class StringUtilsEqualsIndexOfTest extends AbstractLangTest { } /** - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ @Test public void testIndexOfAny_StringStringWithSupplementaryChars() { diff --git a/src/test/java/org/apache/commons/lang3/Supplementary.java b/src/test/java/org/apache/commons/lang3/Supplementary.java index 97d41185f..92310b187 100644 --- a/src/test/java/org/apache/commons/lang3/Supplementary.java +++ b/src/test/java/org/apache/commons/lang3/Supplementary.java @@ -20,29 +20,29 @@ package org.apache.commons.lang3; /** * Supplementary character test fixtures. * - * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ public class Supplementary { /** - * Supplementary character U+20000 See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * Supplementary character U+20000 See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ static final String CharU20000 = "\uD840\uDC00"; /** - * Supplementary character U+20001 See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * Supplementary character U+20001 See https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ static final String CharU20001 = "\uD840\uDC01"; /** * Incomplete supplementary character U+20000, high surrogate only. See - * http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ static final String CharUSuppCharHigh = "\uDC00"; /** * Incomplete supplementary character U+20000, low surrogate only. See - * http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html + * https://www.oracle.com/technical-resources/articles/javase/supplementary.html */ static final String CharUSuppCharLow = "\uD840"; diff --git a/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java b/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java index 922162f75..eed05f414 100644 --- a/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/EqualsBuilderTest.java @@ -1197,7 +1197,7 @@ public class EqualsBuilderTest extends AbstractLangTest { /** * Tests two instances of classes that can be equal and that are not "related". The two classes are not subclasses * of each other and do not share a parent aside from Object. - * See https://issues.apache.org/bugzilla/show_bug.cgi?id=33069 + * See https://issues.apache.org/jira/browse/LANG-6 */ @Test public void testUnrelatedClasses() { @@ -1221,7 +1221,7 @@ public class EqualsBuilderTest extends AbstractLangTest { } /** - * Test from https://issues.apache.org/bugzilla/show_bug.cgi?id=33067 + * Test from https://issues.apache.org/jira/browse/LANG-42 */ @Test public void testNpeForNullElement() { @@ -1229,7 +1229,7 @@ public class EqualsBuilderTest extends AbstractLangTest { final Object[] x2 = {Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3)}; // causes an NPE in 2.0 according to: - // https://issues.apache.org/bugzilla/show_bug.cgi?id=33067 + // https://issues.apache.org/jira/browse/LANG-42 new EqualsBuilder().append(x1, x2); } diff --git a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java index e622597b0..8fc9d19c3 100644 --- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java @@ -484,7 +484,7 @@ public class DurationFormatUtilsTest extends AbstractLangTest { text = DurationFormatUtils.formatPeriod(base.getTime().getTime(), cal.getTime().getTime(), DurationFormatUtils.ISO_EXTENDED_FORMAT_PATTERN, false, timeZone); assertEquals("P32Y1M22DT9H11M12.001S", text); - // test fixture from example in http://www.w3.org/TR/xmlschema-2/#duration + // test fixture from example in https://www.w3.org/TR/xmlschema-2/#duration cal.set(1971, Calendar.FEBRUARY, 3, 10, 30, 0); cal.set(Calendar.MILLISECOND, 0); text = DurationFormatUtils.formatPeriod(base.getTime().getTime(), cal.getTime().getTime(), diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java index 53cd69d6b..dea55a89b 100644 --- a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java +++ b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java @@ -151,7 +151,7 @@ public class FastDateParserTest extends AbstractLangTest { final Calendar cal = Calendar.getInstance(zone, locale); cal.clear(); - // http://docs.oracle.com/javase/6/docs/technotes/guides/intl/calendar.doc.html + // https://docs.oracle.com/javase/8/docs/technotes/guides/intl/calendar.doc.html if (locale.equals(FastDateParser.JAPANESE_IMPERIAL)) { if (year < 1868) { cal.set(Calendar.ERA, 0); |