Skip to content

Commit 7d15536

Browse files
committed
Javadoc
1 parent 8f8f3b2 commit 7d15536

13 files changed

Lines changed: 17 additions & 17 deletions

src/main/java/org/apache/commons/lang3/AutoCloseables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class AutoCloseables {
3838
* Closes the given {@link AutoCloseable} as a null-safe operation.
3939
*
4040
* @param closeable The resource to close, may be null.
41-
* @throws Exception if an error occurs.
41+
* @throws Exception Thrown if an error occurs.
4242
*/
4343
public static void close(final AutoCloseable closeable) throws Exception {
4444
if (closeable != null) {

src/main/java/org/apache/commons/lang3/ObjectUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public static String identityHashCodeHex(final Object object) {
787787
*
788788
* @param appendable The appendable to append to.
789789
* @param object The object to create a toString for.
790-
* @throws IOException if an I/O error occurs.
790+
* @throws IOException Thrown if an I/O error occurs.
791791
* @since 3.2
792792
*/
793793
public static void identityToString(final Appendable appendable, final Object object) throws IOException {

src/main/java/org/apache/commons/lang3/SerializationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static final class ClassLoaderAwareObjectInputStream extends ObjectInputStream {
7474
*
7575
* @param in The {@link InputStream}.
7676
* @param classLoader classloader to use
77-
* @throws IOException if an I/O error occurs while reading stream header.
77+
* @throws IOException Thrown if an I/O error occurs while reading stream header.
7878
* @see java.io.ObjectInputStream
7979
*/
8080
ClassLoaderAwareObjectInputStream(final InputStream in, final ClassLoader classLoader) throws IOException {

src/main/java/org/apache/commons/lang3/concurrent/BackgroundInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private final class InitializationTask implements Callable<T> {
147147
* Initiates initialization and returns the result.
148148
*
149149
* @return The result object
150-
* @throws Exception if an error occurs
150+
* @throws Exception Thrown if an error occurs
151151
*/
152152
@Override
153153
public T call() throws Exception {

src/main/java/org/apache/commons/lang3/concurrent/CallableBackgroundInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected Exception getTypedException(final Exception e) {
118118
* Performs initialization in a background thread. This implementation delegates to the {@link Callable} passed at construction time of this object.
119119
*
120120
* @return The result of the initialization.
121-
* @throws Exception if an error occurs.
121+
* @throws Exception Thrown if an error occurs.
122122
*/
123123
@Override
124124
protected T initialize() throws Exception {

src/main/java/org/apache/commons/lang3/concurrent/MultiBackgroundInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ protected int getTaskCount() {
315315
* the results object. Unchecked exceptions are propagated.
316316
*
317317
* @return The results object.
318-
* @throws Exception if an error occurs.
318+
* @throws Exception Thrown if an error occurs.
319319
*/
320320
@Override
321321
protected MultiBackgroundInitializerResults initialize() throws Exception {

src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private void initializeTransientFields(final Class<L> listenerInterface, final C
315315
* Deserializes the next object into this instance.
316316
*
317317
* @param objectInputStream The input stream.
318-
* @throws IOException if an IO error occurs.
318+
* @throws IOException Thrown if an IO error occurs.
319319
* @throws ClassNotFoundException if the class cannot be resolved.
320320
*/
321321
private void readObject(final ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
@@ -342,7 +342,7 @@ public void removeListener(final L listener) {
342342
* Serializes this instance onto the given ObjectOutputStream.
343343
*
344344
* @param objectOutputStream The output stream
345-
* @throws IOException if an IO error occurs
345+
* @throws IOException Thrown if an IO error occurs
346346
*/
347347
private void writeObject(final ObjectOutputStream objectOutputStream) throws IOException {
348348
final ArrayList<L> serializableListeners = new ArrayList<>();

src/main/java/org/apache/commons/lang3/text/StrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ public StrBuilder minimizeCapacity() {
25042504
*
25052505
* @param readable object to read from.
25062506
* @return The number of characters read.
2507-
* @throws IOException if an I/O error occurs.
2507+
* @throws IOException Thrown if an I/O error occurs.
25082508
* @since 3.4
25092509
* @see #appendTo(Appendable)
25102510
*/

src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public final String translate(final CharSequence input) {
8888
* @param index int representing the current point of translation.
8989
* @param out Writer to translate the text to.
9090
* @return int count of code points consumed.
91-
* @throws IOException if and only if the Writer produces an IOException.
91+
* @throws IOException Thrown if and only if the Writer produces an IOException.
9292
*/
9393
public abstract int translate(CharSequence input, int index, Writer out) throws IOException;
9494

@@ -98,7 +98,7 @@ public final String translate(final CharSequence input) {
9898
*
9999
* @param input CharSequence that is being translated.
100100
* @param writer Writer to translate the text to.
101-
* @throws IOException if and only if the Writer produces an IOException.
101+
* @throws IOException Thrown if and only if the Writer produces an IOException.
102102
*/
103103
@SuppressWarnings("resource") // Caller closes writer
104104
public final void translate(final CharSequence input, final Writer writer) throws IOException {

src/main/java/org/apache/commons/lang3/text/translate/CodePointTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final int translate(final CharSequence input, final int index, final Writ
5555
* @param codePoint int character input to translate.
5656
* @param out Writer to optionally push the translated output to.
5757
* @return boolean as to whether translation occurred or not.
58-
* @throws IOException if and only if the Writer produces an IOException.
58+
* @throws IOException Thrown if and only if the Writer produces an IOException.
5959
*/
6060
public abstract boolean translate(int codePoint, Writer out) throws IOException;
6161

0 commit comments

Comments
 (0)