This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 2a513149d Javadoc: Use semantic tag <strong> instead of style tag <b> 2a513149d is described below commit 2a513149dd92dd8aa57f8fbfae867ca044755565 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 15 11:32:12 2024 -0500 Javadoc: Use semantic tag <strong> instead of style tag <b> --- .../java/org/apache/commons/lang3/ClassUtils.java | 8 ++-- .../java/org/apache/commons/lang3/JavaVersion.java | 4 +- .../apache/commons/lang3/RandomStringUtils.java | 2 +- .../java/org/apache/commons/lang3/RandomUtils.java | 2 +- .../java/org/apache/commons/lang3/StringUtils.java | 54 +++++++++++----------- .../java/org/apache/commons/lang3/Strings.java | 4 +- .../java/org/apache/commons/lang3/SystemUtils.java | 2 +- .../lang3/builder/ReflectionToStringBuilder.java | 2 +- .../lang3/concurrent/BackgroundInitializer.java | 6 +-- .../lang3/concurrent/BasicThreadFactory.java | 26 +++++------ .../concurrent/CallableBackgroundInitializer.java | 10 ++-- .../commons/lang3/concurrent/ConcurrentUtils.java | 26 +++++------ .../lang3/concurrent/ConstantInitializer.java | 6 +-- .../commons/lang3/concurrent/LazyInitializer.java | 2 +- .../concurrent/MultiBackgroundInitializer.java | 8 ++-- .../commons/lang3/concurrent/TimedSemaphore.java | 4 +- .../lang3/exception/DefaultExceptionContext.java | 4 +- .../commons/lang3/exception/ExceptionContext.java | 4 +- .../commons/lang3/text/ExtendedMessageFormat.java | 8 ++-- .../apache/commons/lang3/text/StrSubstitutor.java | 16 +++---- .../apache/commons/lang3/text/package-info.java | 2 +- .../commons/lang3/text/translate/package-info.java | 2 +- .../commons/lang3/time/DurationFormatUtils.java | 8 ++-- .../apache/commons/lang3/util/FluentBitSet.java | 14 +++--- 24 files changed, 112 insertions(+), 112 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index d41fe15a3..601210da6 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -1576,7 +1576,7 @@ public class ClassUtils { * </p> * * @param classes the class array to convert, may be null or empty - * @return an array which contains for each given class, the primitive class or <b>null</b> if the original class is not + * @return an array which contains for each given class, the primitive class or <strong>null</strong> if the original class is not * a wrapper class. {@code null} if null input. Empty array if an empty array passed in. * @see #wrapperToPrimitive(Class) * @since 2.4 @@ -1601,11 +1601,11 @@ public class ClassUtils { * <p> * This method is the counter part of {@code primitiveToWrapper()}. If the passed in class is a wrapper class for a * primitive type, this primitive type will be returned (e.g. {@code Integer.TYPE} for {@code Integer.class}). For other - * classes, or if the parameter is <b>null</b>, the return value is <b>null</b>. + * classes, or if the parameter is <strong>null</strong>, the return value is <strong>null</strong>. * </p> * - * @param cls the class to convert, may be <b>null</b> - * @return the corresponding primitive type if {@code cls} is a wrapper class, <b>null</b> otherwise + * @param cls the class to convert, may be <strong>null</strong> + * @return the corresponding primitive type if {@code cls} is a wrapper class, <strong>null</strong> otherwise * @see #primitiveToWrapper(Class) * @since 2.4 */ diff --git a/src/main/java/org/apache/commons/lang3/JavaVersion.java b/src/main/java/org/apache/commons/lang3/JavaVersion.java index 48ffb29ed..dcda2c720 100644 --- a/src/main/java/org/apache/commons/lang3/JavaVersion.java +++ b/src/main/java/org/apache/commons/lang3/JavaVersion.java @@ -201,7 +201,7 @@ public enum JavaVersion { * internally. * * @param versionStr the Java version as string - * @return the corresponding enumeration constant or <b>null</b> if the + * @return the corresponding enumeration constant or <strong>null</strong> if the * version is unknown */ static JavaVersion get(final String versionStr) { @@ -278,7 +278,7 @@ public enum JavaVersion { * internally. * * @param versionStr the Java version as string - * @return the corresponding enumeration constant or <b>null</b> if the + * @return the corresponding enumeration constant or <strong>null</strong> if the * version is unknown */ static JavaVersion getJavaVersion(final String versionStr) { diff --git a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java index 07f4706e5..7a192da39 100644 --- a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java +++ b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java @@ -33,7 +33,7 @@ import java.util.function.Supplier; * the algorithms/providers specified in the {@code securerandom.strongAlgorithms} {@link Security} property. * </p> * <p> - * Use {@link #insecure()} to get the singleton instance based on {@link ThreadLocalRandom#current()} <b>which is not cryptographically secure</b>. In addition, + * Use {@link #insecure()} to get the singleton instance based on {@link ThreadLocalRandom#current()} <strong>which is not cryptographically secure</strong>. In addition, * instances do not use a cryptographically random seed unless the {@linkplain System#getProperty system property} {@code java.util.secureRandomSeed} is set to * {@code true}. * </p> diff --git a/src/main/java/org/apache/commons/lang3/RandomUtils.java b/src/main/java/org/apache/commons/lang3/RandomUtils.java index 7bca01770..42a9c9fb8 100644 --- a/src/main/java/org/apache/commons/lang3/RandomUtils.java +++ b/src/main/java/org/apache/commons/lang3/RandomUtils.java @@ -36,7 +36,7 @@ import org.apache.commons.lang3.exception.UncheckedException; * the algorithms/providers specified in the {@code securerandom.strongAlgorithms} {@link Security} property. * </p> * <p> - * Use {@link #insecure()} to get the singleton instance based on {@link ThreadLocalRandom#current()} <b>which is not cryptographically secure</b>. In addition, + * Use {@link #insecure()} to get the singleton instance based on {@link ThreadLocalRandom#current()} <strong>which is not cryptographically secure</strong>. In addition, * instances do not use a cryptographically random seed unless the {@linkplain System#getProperty system property} {@code java.util.secureRandomSeed} is set to * {@code true}. * </p> diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 70c26ee31..ec0cf5119 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -37,57 +37,57 @@ import org.apache.commons.lang3.stream.Streams; * {@code null} safe. * * <ul> - * <li><b>IsEmpty/IsBlank</b> + * <li><strong>IsEmpty/IsBlank</strong> * - checks if a String contains text</li> - * <li><b>Trim/Strip</b> + * <li><strong>Trim/Strip</strong> * - removes leading and trailing whitespace</li> - * <li><b>Equals/Compare</b> + * <li><strong>Equals/Compare</strong> * - compares two strings in a null-safe manner</li> - * <li><b>startsWith</b> + * <li><strong>startsWith</strong> * - check if a String starts with a prefix in a null-safe manner</li> - * <li><b>endsWith</b> + * <li><strong>endsWith</strong> * - check if a String ends with a suffix in a null-safe manner</li> - * <li><b>IndexOf/LastIndexOf/Contains</b> + * <li><strong>IndexOf/LastIndexOf/Contains</strong> * - null-safe index-of checks - * <li><b>IndexOfAny/LastIndexOfAny/IndexOfAnyBut/LastIndexOfAnyBut</b> + * <li><strong>IndexOfAny/LastIndexOfAny/IndexOfAnyBut/LastIndexOfAnyBut</strong> * - index-of any of a set of Strings</li> - * <li><b>ContainsOnly/ContainsNone/ContainsAny</b> + * <li><strong>ContainsOnly/ContainsNone/ContainsAny</strong> * - checks if String contains only/none/any of these characters</li> - * <li><b>Substring/Left/Right/Mid</b> + * <li><strong>Substring/Left/Right/Mid</strong> * - null-safe substring extractions</li> - * <li><b>SubstringBefore/SubstringAfter/SubstringBetween</b> + * <li><strong>SubstringBefore/SubstringAfter/SubstringBetween</strong> * - substring extraction relative to other strings</li> - * <li><b>Split/Join</b> + * <li><strong>Split/Join</strong> * - splits a String into an array of substrings and vice versa</li> - * <li><b>Remove/Delete</b> + * <li><strong>Remove/Delete</strong> * - removes part of a String</li> - * <li><b>Replace/Overlay</b> + * <li><strong>Replace/Overlay</strong> * - Searches a String and replaces one String with another</li> - * <li><b>Chomp/Chop</b> + * <li><strong>Chomp/Chop</strong> * - removes the last part of a String</li> - * <li><b>AppendIfMissing</b> + * <li><strong>AppendIfMissing</strong> * - appends a suffix to the end of the String if not present</li> - * <li><b>PrependIfMissing</b> + * <li><strong>PrependIfMissing</strong> * - prepends a prefix to the start of the String if not present</li> - * <li><b>LeftPad/RightPad/Center/Repeat</b> + * <li><strong>LeftPad/RightPad/Center/Repeat</strong> * - pads a String</li> - * <li><b>UpperCase/LowerCase/SwapCase/Capitalize/Uncapitalize</b> + * <li><strong>UpperCase/LowerCase/SwapCase/Capitalize/Uncapitalize</strong> * - changes the case of a String</li> - * <li><b>CountMatches</b> + * <li><strong>CountMatches</strong> * - counts the number of occurrences of one String in another</li> - * <li><b>IsAlpha/IsNumeric/IsWhitespace/IsAsciiPrintable</b> + * <li><strong>IsAlpha/IsNumeric/IsWhitespace/IsAsciiPrintable</strong> * - checks the characters in a String</li> - * <li><b>DefaultString</b> + * <li><strong>DefaultString</strong> * - protects against a null input String</li> - * <li><b>Rotate</b> + * <li><strong>Rotate</strong> * - rotate (circular shift) a String</li> - * <li><b>Reverse/ReverseDelimited</b> + * <li><strong>Reverse/ReverseDelimited</strong> * - reverses a String</li> - * <li><b>Abbreviate</b> + * <li><strong>Abbreviate</strong> * - abbreviates a string using ellipses or another given String</li> - * <li><b>Difference</b> + * <li><strong>Difference</strong> * - compares Strings and reports on their differences</li> - * <li><b>LevenshteinDistance</b> + * <li><strong>LevenshteinDistance</strong> * - the number of changes needed to change one String into another</li> * </ul> * @@ -5418,7 +5418,7 @@ public class StringUtils { /** * Finds the n-th index within a CharSequence, handling {@code null}. * This method uses {@link String#indexOf(String)} if possible. - * <p><b>Note:</b> The code starts looking for a match at the start of the target, + * <p><strong>Note:</strong> The code starts looking for a match at the start of the target, * incrementing the starting index by one after each successful match * (unless {@code searchStr} is an empty string in which case the position * is never incremented and {@code 0} is returned immediately). diff --git a/src/main/java/org/apache/commons/lang3/Strings.java b/src/main/java/org/apache/commons/lang3/Strings.java index 80e18c55c..504de96b1 100644 --- a/src/main/java/org/apache/commons/lang3/Strings.java +++ b/src/main/java/org/apache/commons/lang3/Strings.java @@ -263,12 +263,12 @@ public abstract class Strings { } /** - * The <b>C</b>ase-<b>I</b>nsensitive singleton instance. + * The <strong>C</strong>ase-<strong>I</strong>nsensitive singleton instance. */ public static final Strings CI = new CiStrings(true); /** - * The <b>C</b>ase-<b>S</b>nsensitive singleton instance. + * The <strong>C</strong>ase-<strong>S</strong>nsensitive singleton instance. */ public static final Strings CS = new CsStrings(true); diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index bec5a5d42..55486f1f0 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1911,7 +1911,7 @@ public class SystemUtils { * Holds a class name, on Windows XP this is {@code sun.awt.windows.WToolkit}. * </p> * <p> - * <b>On platforms without a GUI, this value is {@code null}.</b> + * <strong>On platforms without a GUI, this value is {@code null}.</strong> * </p> * <p> * Defaults to {@code null} if the runtime does not have security access to read this property or the property does diff --git a/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java b/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java index b0c382025..31b1e1f6e 100644 --- a/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java @@ -92,7 +92,7 @@ import org.apache.commons.lang3.stream.Streams; * </p> * * <p> - * <b>Note:</b> the default {@link ToStringStyle} will only do a "shallow" formatting, i.e. composed objects are not + * <strong>Note:</strong> the default {@link ToStringStyle} will only do a "shallow" formatting, i.e. composed objects are not * further traversed. To get "deep" formatting, use an instance of {@link RecursiveToStringStyle}. * </p> * diff --git a/src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java index 613c85fb1..4c7191a83 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java @@ -271,7 +271,7 @@ public class BackgroundInitializer<T> extends AbstractConcurrentInitializer<T, E /** * Returns the {@link ExecutorService} that is actually used for executing * the background task. This method can be called after {@link #start()} - * (before {@code start()} it returns <b>null</b>). If an external executor + * (before {@code start()} it returns <strong>null</strong>). If an external executor * was set, this is also the active executor. Otherwise this method returns * the temporary executor that was created by this object. * @@ -392,8 +392,8 @@ public class BackgroundInitializer<T> extends AbstractConcurrentInitializer<T, E * becomes active and invokes the {@link #initialize()} method in a * background task. A {@link BackgroundInitializer} can be started exactly * once. The return value of this method determines whether the start was - * successful: only the first invocation of this method returns <b>true</b>, - * following invocations will return <b>false</b>. + * successful: only the first invocation of this method returns <strong>true</strong>, + * following invocations will return <strong>false</strong>. * * @return a flag whether the initializer could be started successfully */ diff --git a/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java b/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java index 1ba5d4f9a..aa0c9e24a 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java @@ -140,7 +140,7 @@ public class BasicThreadFactory implements ThreadFactory { /** * Sets the daemon flag for the new {@link BasicThreadFactory}. If this - * flag is set to <b>true</b> the new thread factory will create daemon + * flag is set to <strong>true</strong> the new thread factory will create daemon * threads. * * @param daemon the value of the daemon flag @@ -155,9 +155,9 @@ public class BasicThreadFactory implements ThreadFactory { * Sets the naming pattern to be used by the new {@code * BasicThreadFactory}. * - * @param namingPattern the naming pattern (must not be <b>null</b>) + * @param namingPattern the naming pattern (must not be <strong>null</strong>) * @return a reference to this {@link Builder} - * @throws NullPointerException if the naming pattern is <b>null</b> + * @throws NullPointerException if the naming pattern is <strong>null</strong> */ public Builder namingPattern(final String namingPattern) { this.namingPattern = Objects.requireNonNull(namingPattern, "pattern"); @@ -195,9 +195,9 @@ public class BasicThreadFactory implements ThreadFactory { * new {@link BasicThreadFactory}. * * @param exceptionHandler the {@link UncaughtExceptionHandler} (must not be - * <b>null</b>) + * <strong>null</strong>) * @return a reference to this {@link Builder} - * @throws NullPointerException if the exception handler is <b>null</b> + * @throws NullPointerException if the exception handler is <strong>null</strong> */ public Builder uncaughtExceptionHandler( final Thread.UncaughtExceptionHandler exceptionHandler) { @@ -210,10 +210,10 @@ public class BasicThreadFactory implements ThreadFactory { * BasicThreadFactory}. * * @param factory the wrapped {@link ThreadFactory} (must not be - * <b>null</b>) + * <strong>null</strong>) * @return a reference to this {@link Builder} * @throws NullPointerException if the passed in {@link ThreadFactory} - * is <b>null</b> + * is <strong>null</strong> */ public Builder wrappedFactory(final ThreadFactory factory) { this.factory = Objects.requireNonNull(factory, "factory"); @@ -256,9 +256,9 @@ public class BasicThreadFactory implements ThreadFactory { /** * Gets the daemon flag. This flag determines whether newly created - * threads should be daemon threads. If <b>true</b>, this factory object + * threads should be daemon threads. If <strong>true</strong>, this factory object * calls {@code setDaemon(true)} on the newly created threads. Result can be - * <b>null</b> if no daemon flag was provided at creation time. + * <strong>null</strong> if no daemon flag was provided at creation time. * * @return the daemon flag */ @@ -268,7 +268,7 @@ public class BasicThreadFactory implements ThreadFactory { /** * Gets the naming pattern for naming newly created threads. Result can - * be <b>null</b> if no naming pattern was provided. + * be <strong>null</strong> if no naming pattern was provided. * * @return the naming pattern */ @@ -278,7 +278,7 @@ public class BasicThreadFactory implements ThreadFactory { /** * Gets the priority of the threads created by this factory. Result can - * be <b>null</b> if no priority was specified. + * be <strong>null</strong> if no priority was specified. * * @return the priority for newly created threads */ @@ -299,7 +299,7 @@ public class BasicThreadFactory implements ThreadFactory { /** * Gets the {@link UncaughtExceptionHandler} for the threads created by - * this factory. Result can be <b>null</b> if no handler was provided. + * this factory. Result can be <strong>null</strong> if no handler was provided. * * @return the {@link UncaughtExceptionHandler} */ @@ -309,7 +309,7 @@ public class BasicThreadFactory implements ThreadFactory { /** * Gets the wrapped {@link ThreadFactory}. This factory is used for - * actually creating threads. This method never returns <b>null</b>. If no + * actually creating threads. This method never returns <strong>null</strong>. If no * {@link ThreadFactory} was passed when this object was created, a default * thread factory is returned. * diff --git a/src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java index ade5533ab..c856f95e5 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java @@ -72,8 +72,8 @@ public class CallableBackgroundInitializer<T> extends BackgroundInitializer<T> { * Creates a new instance of {@link CallableBackgroundInitializer} and sets * the {@link Callable} to be executed in a background thread. * - * @param call the {@link Callable} (must not be <b>null</b>) - * @throws IllegalArgumentException if the {@link Callable} is <b>null</b> + * @param call the {@link Callable} (must not be <strong>null</strong>) + * @throws IllegalArgumentException if the {@link Callable} is <strong>null</strong> */ public CallableBackgroundInitializer(final Callable<T> call) { checkCallable(call); @@ -86,10 +86,10 @@ public class CallableBackgroundInitializer<T> extends BackgroundInitializer<T> { * thread and the {@link ExecutorService} for managing the background * execution. * - * @param call the {@link Callable} (must not be <b>null</b>) + * @param call the {@link Callable} (must not be <strong>null</strong>) * @param exec an external {@link ExecutorService} to be used for task * execution - * @throws IllegalArgumentException if the {@link Callable} is <b>null</b> + * @throws IllegalArgumentException if the {@link Callable} is <strong>null</strong> */ public CallableBackgroundInitializer(final Callable<T> call, final ExecutorService exec) { super(exec); @@ -102,7 +102,7 @@ public class CallableBackgroundInitializer<T> extends BackgroundInitializer<T> { * undefined. * * @param callable the object to check - * @throws IllegalArgumentException if the {@link Callable} is <b>null</b> + * @throws IllegalArgumentException if the {@link Callable} is <strong>null</strong> */ private void checkCallable(final Callable<T> callable) { Objects.requireNonNull(callable, "callable"); diff --git a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java index 7ad31d13b..6351726b6 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java @@ -44,7 +44,7 @@ public class ConcurrentUtils { * Creates a new instance of {@link ConstantFuture} and initializes it * with the constant value. * - * @param value the value (may be <b>null</b>) + * @param value the value (may be <strong>null</strong>) */ ConstantFuture(final T value) { this.value = value; @@ -52,7 +52,7 @@ public class ConcurrentUtils { /** * {@inheritDoc} The cancel operation is not supported. This - * implementation always returns <b>false</b>. + * implementation always returns <strong>false</strong>. */ @Override public boolean cancel(final boolean mayInterruptIfRunning) { @@ -77,7 +77,7 @@ public class ConcurrentUtils { } /** - * {@inheritDoc} This implementation always returns <b>false</b>; there + * {@inheritDoc} This implementation always returns <strong>false</strong>; there * is no background process which could be cancelled. */ @Override @@ -86,7 +86,7 @@ public class ConcurrentUtils { } /** - * {@inheritDoc} This implementation always returns <b>true</b> because + * {@inheritDoc} This implementation always returns <strong>true</strong> because * the constant object managed by this {@link Future} implementation is * always available. */ @@ -136,8 +136,8 @@ public class ConcurrentUtils { * is called. With the resulting object * {@link #putIfAbsent(ConcurrentMap, Object, Object)} is called. This * handles the case that in the meantime another thread has added the key to - * the map. Both the map and the initializer can be <b>null</b>; in this - * case this method simply returns <b>null</b>. + * the map. Both the map and the initializer can be <strong>null</strong>; in this + * case this method simply returns <strong>null</strong>. * * @param <K> the type of the keys of the map * @param <V> the type of the values of the map @@ -191,8 +191,8 @@ public class ConcurrentUtils { * necessary. This method performs the following checks on the cause of the * passed in exception: * <ul> - * <li>If the passed in exception is <b>null</b> or the cause is - * <b>null</b>, this method returns <b>null</b>.</li> + * <li>If the passed in exception is <strong>null</strong> or the cause is + * <strong>null</strong>, this method returns <strong>null</strong>.</li> * <li>If the cause is a runtime exception, it is directly thrown.</li> * <li>If the cause is an error, it is directly thrown, too.</li> * <li>In any other case the cause is a checked exception. The method then @@ -239,7 +239,7 @@ public class ConcurrentUtils { * exception - which might already cause an unchecked exception or an error * being thrown. If the cause is a checked exception however, it is wrapped * in a {@link ConcurrentException}, which is thrown. If the passed in - * exception is <b>null</b> or has no cause, the method simply returns + * exception is <strong>null</strong> or has no cause, the method simply returns * without throwing an exception. * * @param ex the exception to be handled @@ -280,8 +280,8 @@ public class ConcurrentUtils { * Invokes the specified {@link ConcurrentInitializer} and returns the * object produced by the initializer. This method just invokes the {@code * get()} method of the given {@link ConcurrentInitializer}. It is - * <b>null</b>-safe: if the argument is <b>null</b>, result is also - * <b>null</b>. + * <strong>null</strong>-safe: if the argument is <strong>null</strong>, result is also + * <strong>null</strong>. * * @param <T> the type of the object produced by the initializer * @param initializer the {@link ConcurrentInitializer} to be invoked @@ -335,9 +335,9 @@ public class ConcurrentUtils { * returns the value which is stored in the map. * </p> * <p> - * This method is <b>null</b>-safe: It accepts a <b>null</b> map as input + * This method is <strong>null</strong>-safe: It accepts a <strong>null</strong> map as input * without throwing an exception. In this case the return value is - * <b>null</b>, too. + * <strong>null</strong>, too. * </p> * * @param <K> the type of the keys of the map diff --git a/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java index 3d2bdaee2..b797d4b22 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/ConstantInitializer.java @@ -48,8 +48,8 @@ public class ConstantInitializer<T> implements ConcurrentInitializer<T> { * Creates a new instance of {@link ConstantInitializer} and initializes it * with the object to be managed. The {@code get()} method will always * return the object passed here. This class does not place any restrictions - * on the object. It may be <b>null</b>, then {@code get()} will return - * <b>null</b>, too. + * on the object. It may be <strong>null</strong>, then {@code get()} will return + * <strong>null</strong>, too. * * @param obj the object to be managed by this initializer */ @@ -59,7 +59,7 @@ public class ConstantInitializer<T> implements ConcurrentInitializer<T> { /** * Compares this object with another one. This implementation returns - * <b>true</b> if and only if the passed in object is an instance of + * <strong>true</strong> if and only if the passed in object is an instance of * {@link ConstantInitializer} which refers to an object equals to the * object managed by this instance. * diff --git a/src/main/java/org/apache/commons/lang3/concurrent/LazyInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/LazyInitializer.java index 271a97afb..3f874b7e2 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/LazyInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/LazyInitializer.java @@ -63,7 +63,7 @@ import org.apache.commons.lang3.function.FailableSupplier; * <p> * If multiple threads call the {@code get()} method when the object has not yet been created, they are blocked until initialization completes. The algorithm * guarantees that only a single instance of the wrapped object class is created, which is passed to all callers. Once initialized, calls to the {@code get()} - * method are pretty fast because no synchronization is needed (only an access to a <b>volatile</b> member field). + * method are pretty fast because no synchronization is needed (only an access to a <strong>volatile</strong> member field). * </p> * * @since 3.0 diff --git a/src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java index b4bf41740..af08c7daf 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java @@ -158,7 +158,7 @@ public class MultiBackgroundInitializer * Returns the {@link ConcurrentException} object that was thrown by the * {@link BackgroundInitializer} with the given name. If this * initializer did not throw an exception, the return value is - * <b>null</b>. If the name cannot be resolved, an exception is thrown. + * <strong>null</strong>. If the name cannot be resolved, an exception is thrown. * * @param name the name of the {@link BackgroundInitializer} * @return the exception thrown by this initializer @@ -185,7 +185,7 @@ public class MultiBackgroundInitializer * Returns the result object produced by the {@code * BackgroundInitializer} with the given name. This is the object * returned by the initializer's {@code initialize()} method. If this - * {@link BackgroundInitializer} caused an exception, <b>null</b> is + * {@link BackgroundInitializer} caused an exception, <strong>null</strong> is * returned. If the name cannot be resolved, an exception is thrown. * * @param name the name of the {@link BackgroundInitializer} @@ -259,9 +259,9 @@ public class MultiBackgroundInitializer * be processed. This method must not be called after {@link #start()} has * been invoked. * - * @param name the name of the initializer (must not be <b>null</b>) + * @param name the name of the initializer (must not be <strong>null</strong>) * @param backgroundInitializer the {@link BackgroundInitializer} to add (must not be - * <b>null</b>) + * <strong>null</strong>) * @throws NullPointerException if either {@code name} or {@code backgroundInitializer} * is {@code null} * @throws IllegalStateException if {@code start()} has already been called diff --git a/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java b/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java index 540c33c45..e7ba70081 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java @@ -200,7 +200,7 @@ public class TimedSemaphore { * Creates a new instance of {@link TimedSemaphore} and initializes it with * an executor service, the given time period, and the limit. The executor * service will be used for creating a periodic task for monitoring the time - * period. It can be <b>null</b>, then a default service will be created. + * period. It can be <strong>null</strong>, then a default service will be created. * * @param service the executor service * @param timePeriod the time period @@ -377,7 +377,7 @@ public class TimedSemaphore { /** * Tests whether the {@link #shutdown()} method has been called on this - * object. If this method returns <b>true</b>, this instance cannot be used + * object. If this method returns <strong>true</strong>, this instance cannot be used * any longer. * * @return a flag whether a shutdown has been performed diff --git a/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java b/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java index cb9f182fa..d727e185a 100644 --- a/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java +++ b/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java @@ -98,8 +98,8 @@ public class DefaultExceptionContext implements ExceptionContext, Serializable { /** * Builds the message containing the contextual information. * - * @param baseMessage the base exception message <b>without</b> context information appended - * @return the exception message <b>with</b> context information appended, never null + * @param baseMessage the base exception message <strong>without</strong> context information appended + * @return the exception message <strong>with</strong> context information appended, never null */ @Override public String getFormattedExceptionMessage(final String baseMessage) { diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java index 121f8f466..6c45612fa 100644 --- a/src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java +++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionContext.java @@ -82,8 +82,8 @@ public interface ExceptionContext { * Gets the contextualized error message based on a base message. * This will add the context label-value pairs to the message. * - * @param baseMessage the base exception message <b>without</b> context information appended - * @return the exception message <b>with</b> context information appended, not {@code null} + * @param baseMessage the base exception message <strong>without</strong> context information appended + * @return the exception message <strong>with</strong> context information appended, not {@code null} */ String getFormattedExceptionMessage(String baseMessage); diff --git a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java index 8fedbe167..32d73936e 100644 --- a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java +++ b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java @@ -37,9 +37,9 @@ import org.apache.commons.lang3.Validate; * parsed from the message pattern. In this way custom patterns can be specified, * and the formats supported by {@link java.text.MessageFormat} can be overridden * at the format and/or format style level (see MessageFormat). A "format element" - * embedded in the message pattern is specified (<b>()?</b> signifies optionality):<br> - * <code>{</code><em>argument-number</em><b>(</b>{@code ,}<em>format-name</em><b> - * (</b>{@code ,}<em>format-style</em><b>)?)?</b><code>}</code> + * embedded in the message pattern is specified (<strong>()?</strong> signifies optionality):<br> + * <code>{</code><em>argument-number</em><strong>(</strong>{@code ,}<em>format-name</em><b> + * (</b>{@code ,}<em>format-style</em><strong>)?)?</strong><code>}</code> * * <p> * <em>format-name</em> and <em>format-style</em> values are trimmed of surrounding whitespace @@ -50,7 +50,7 @@ import org.apache.commons.lang3.Validate; * found is used for this format element. * </p> * - * <p><b>NOTICE:</b> The various subformat mutator methods are considered unnecessary; they exist on the parent + * <p><strong>NOTICE:</strong> The various subformat mutator methods are considered unnecessary; they exist on the parent * class to allow the type of customization which it is the job of this class to provide in * a configurable fashion. These methods have thus been disabled and will throw * {@link UnsupportedOperationException} if called. diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java index 7b97f15a5..7f85de30f 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java +++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java @@ -134,10 +134,10 @@ import org.apache.commons.lang3.StringUtils; * {@link StrSubstitutor} supports this recursive substitution in variable * names, but it has to be enabled explicitly by setting the * {@link #setEnableSubstitutionInVariables(boolean) enableSubstitutionInVariables} - * property to <b>true</b>. + * property to <strong>true</strong>. * </p> * <p> - * This class is <b>not</b> thread safe. + * This class is <strong>not</strong> thread safe. * </p> * * @since 2.2 @@ -862,7 +862,7 @@ public class StrSubstitutor { * @param buf the buffer where the substitution is occurring, not null * @param startPos the start position of the variable including the prefix, valid * @param endPos the end position of the variable including the suffix, valid - * @return the variable's value or <b>null</b> if the variable is unknown + * @return the variable's value or <strong>null</strong> if the variable is unknown */ protected String resolveVariable(final String variableName, final StrBuilder buf, final int startPos, final int endPos) { final StrLookup<?> resolver = getVariableResolver(); @@ -874,9 +874,9 @@ public class StrSubstitutor { /** * Sets a flag whether substitution is done in variable names. If set to - * <b>true</b>, the names of variables can contain other variables which are + * <strong>true</strong>, the names of variables can contain other variables which are * processed first before the original variable is evaluated, e.g. - * {@code ${jre-${java.version}}}. The default value is <b>false</b>. + * {@code ${jre-${java.version}}}. The default value is <strong>false</strong>. * * @param enableSubstitutionInVariables the new value of the flag * @since 3.0 @@ -899,12 +899,12 @@ public class StrSubstitutor { /** * Sets a flag controlling whether escapes are preserved during - * substitution. If set to <b>true</b>, the escape character is retained + * substitution. If set to <strong>true</strong>, the escape character is retained * during substitution (e.g. {@code $${this-is-escaped}} remains - * {@code $${this-is-escaped}}). If set to <b>false</b>, the escape + * {@code $${this-is-escaped}}). If set to <strong>false</strong>, the escape * character is removed during substitution (e.g. * {@code $${this-is-escaped}} becomes - * {@code ${this-is-escaped}}). The default value is <b>false</b> + * {@code ${this-is-escaped}}). The default value is <strong>false</strong> * * @param preserveEscapes true if escapes are to be preserved * @since 3.5 diff --git a/src/main/java/org/apache/commons/lang3/text/package-info.java b/src/main/java/org/apache/commons/lang3/text/package-info.java index f0dbe25e7..ec44fe5bf 100644 --- a/src/main/java/org/apache/commons/lang3/text/package-info.java +++ b/src/main/java/org/apache/commons/lang3/text/package-info.java @@ -26,7 +26,7 @@ * ensure we don't clash with any current or future standard Java classes. * </p> * <p> - * <b>Deprecated</b> As of 3.6, use the Apache Commons Text + * <strong>Deprecated</strong> As of 3.6, use the Apache Commons Text * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/package-summary.html"> text package</a>. * </p> * diff --git a/src/main/java/org/apache/commons/lang3/text/translate/package-info.java b/src/main/java/org/apache/commons/lang3/text/translate/package-info.java index 1f959e33f..05ce03aa2 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/package-info.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/package-info.java @@ -22,7 +22,7 @@ * These classes are immutable, and therefore thread-safe. * </p> * <p> - * <b>Deprecated</b> As of 3.6, use the Apache Commons Text + * <strong>Deprecated</strong> As of 3.6, use the Apache Commons Text * <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/translate/package-summary.html"> translate package</a>. * </p> * diff --git a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java index 2c7d0c134..38ab0ac72 100644 --- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java @@ -45,7 +45,7 @@ import org.apache.commons.lang3.Validate; * <tr><td>'text'</td><td>arbitrary text content</td></tr> * </table> * - * <b>Note: It's not currently possible to include a single-quote in a format.</b> + * <strong>Note: It's not currently possible to include a single-quote in a format.</strong> * <br> * Token values are printed using decimal digits. * A token character can be repeated to ensure that the field occupies a certain minimum @@ -58,8 +58,8 @@ import org.apache.commons.lang3.Validate; * Multiple optional blocks can be used to group literals with the desired token. * <p> * Notes on Optional Tokens:<br> - * <b>Multiple optional tokens without literals can result in impossible to understand output.</b><br> - * <b>Patterns where all tokens are optional can produce empty strings.</b><br> + * <strong>Multiple optional tokens without literals can result in impossible to understand output.</strong><br> + * <strong>Patterns where all tokens are optional can produce empty strings.</strong><br> * (See examples below) * </p> * <br> @@ -74,7 +74,7 @@ import org.apache.commons.lang3.Validate; * <tr><td>['{'dd'}']['<'HH'>']['('mm')']</td><td>{01}</td><td><01></td><td>(00)</td><td></td></tr> * <tr><td>[dHms]</td><td>1</td><td>1</td><td>1</td><td></td></tr> * </table> - * <b>Note: Optional blocks cannot be nested.</b> + * <strong>Note: Optional blocks cannot be nested.</strong> * * @since 2.1 */ diff --git a/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java b/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java index 07bf321c1..b3ec2eeb1 100644 --- a/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java +++ b/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java @@ -65,7 +65,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>AND</b> of this target bit set with the argument bit set. This bit set is modified so that each + * Performs a logical <strong>AND</strong> of this target bit set with the argument bit set. This bit set is modified so that each * bit in it has the value {@code true} if and only if it both initially had the value {@code true} and the * corresponding bit in the bit set argument also had the value {@code true}. * @@ -78,7 +78,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>AND</b> of this target bit set with the argument bit set. This bit set is modified so that each + * Performs a logical <strong>AND</strong> of this target bit set with the argument bit set. This bit set is modified so that each * bit in it has the value {@code true} if and only if it both initially had the value {@code true} and the * corresponding bit in the bit set argument also had the value {@code true}. * @@ -341,7 +341,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>OR</b> of this bit set with the bit set argument. This bit set is modified so that a bit in it + * Performs a logical <strong>OR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it * has the value {@code true} if and only if it either already had the value {@code true} or the corresponding bit in * the bit set argument has the value {@code true}. * @@ -354,7 +354,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>OR</b> of this bit set with the bit set arguments. This bit set is modified so that a bit in it + * Performs a logical <strong>OR</strong> of this bit set with the bit set arguments. This bit set is modified so that a bit in it * has the value {@code true} if and only if it either already had the value {@code true} or the corresponding bit in * the bit set argument has the value {@code true}. * @@ -369,7 +369,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>OR</b> of this bit set with the bit set argument. This bit set is modified so that a bit in it + * Performs a logical <strong>OR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it * has the value {@code true} if and only if it either already had the value {@code true} or the corresponding bit in * the bit set argument has the value {@code true}. * @@ -571,7 +571,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>XOR</b> of this bit set with the bit set argument. This bit set is modified so that a bit in it + * Performs a logical <strong>XOR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it * has the value {@code true} if and only if one of the following statements holds: * <ul> * <li>The bit initially has the value {@code true}, and the corresponding bit in the argument has the value @@ -589,7 +589,7 @@ public final class FluentBitSet implements Cloneable, Serializable { } /** - * Performs a logical <b>XOR</b> of this bit set with the bit set argument. This bit set is modified so that a bit in it + * Performs a logical <strong>XOR</strong> of this bit set with the bit set argument. This bit set is modified so that a bit in it * has the value {@code true} if and only if one of the following statements holds: * <ul> * <li>The bit initially has the value {@code true}, and the corresponding bit in the argument has the value