From 8b6f18cb0d4b0fb1281b39bfb36bababa6c26886 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 29 Aug 2022 07:36:33 -0400 Subject: [PATCH] Javadoc @link tags do not need to use a FQCN for classes in java.lang --- src/main/java/org/apache/commons/lang3/ObjectUtils.java | 4 ++-- .../org/apache/commons/lang3/builder/ToStringBuilder.java | 2 +- .../org/apache/commons/lang3/concurrent/package-info.java | 2 +- src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java b/src/main/java/org/apache/commons/lang3/ObjectUtils.java index 735617863..db1161368 100644 --- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java +++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java @@ -62,7 +62,7 @@ public class ObjectUtils { * has another meaning. * *

For example, in a {@link HashMap} the - * {@link java.util.HashMap#get(java.lang.Object)} method returns + * {@link java.util.HashMap#get(Object)} method returns * {@code null} if the {@link Map} contains {@code null} or if there is * no matching key. The {@code null} placeholder can be used to distinguish * between these two cases.

@@ -101,7 +101,7 @@ public class ObjectUtils { * {@code null} has another meaning. * *

For example, in a {@link HashMap} the - * {@link java.util.HashMap#get(java.lang.Object)} method returns + * {@link java.util.HashMap#get(Object)} method returns * {@code null} if the {@link Map} contains {@code null} or if there * is no matching key. The {@code null} placeholder can be used to * distinguish between these two cases.

diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java b/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java index 9779853ca..39c88185a 100644 --- a/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java @@ -902,7 +902,7 @@ public class ToStringBuilder implements Builder { /** * Appends with the same format as the default Object toString() * method. Appends the class name followed by - * {@link System#identityHashCode(java.lang.Object)}. + * {@link System#identityHashCode(Object)}. * * @param srcObject the {@link Object} whose class name and id to output * @return this diff --git a/src/main/java/org/apache/commons/lang3/concurrent/package-info.java b/src/main/java/org/apache/commons/lang3/concurrent/package-info.java index 7ff093401..a283a86d0 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/package-info.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/package-info.java @@ -407,7 +407,7 @@ * The nested {@link org.apache.commons.lang3.concurrent.BasicThreadFactory.Builder} class defines some methods for * configuring the new {@link org.apache.commons.lang3.concurrent.BasicThreadFactory} instance. Objects of this class * are immutable, so these attributes cannot be changed later. The naming pattern is a string which can be passed to - * {@link java.lang.String#format(java.util.Locale, String, Object...)}. The placeholder %d is replaced by an + * {@link String#format(java.util.Locale, String, Object...)}. The placeholder %d is replaced by an * increasing counter value. An instance can wrap another {@link java.util.concurrent.ThreadFactory} implementation; * this is achieved by calling the builder's * {@link org.apache.commons.lang3.concurrent.BasicThreadFactory.Builder#wrappedFactory(java.util.concurrent.ThreadFactory) diff --git a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java index 68de4ccab..71f5f65fc 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java @@ -401,7 +401,7 @@ public class TypeUtils { * parameter of {@link java.util.SortedSet}, which in turn sets the * parameter of {@link Set}, which in turn sets the parameter of * {@link java.util.Collection}, which in turn sets the parameter of - * {@link java.lang.Iterable}. Since {@link TreeSet}'s parameter maps + * {@link Iterable}. Since {@link TreeSet}'s parameter maps * (indirectly) to {@link Iterable}'s parameter, it will be able to * determine that based on the super type {@code Iterable>>}, the parameter of