Skip to content

Commit b059cd3

Browse files
committed
Javadoc
1 parent 89ef772 commit b059cd3

4 files changed

Lines changed: 25 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/ThreadUtils.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,13 @@ public static void sleep(final Duration duration) throws InterruptedException {
5151
} while (!remainingDuration.isNegative());
5252
}
5353

54+
/**
55+
* Consider private.
56+
*
57+
* @deprecated Will be private in the next major version.
58+
*/
59+
@Deprecated
60+
public ThreadUtils() {
61+
// empty
62+
}
5463
}

src/main/java/org/apache/commons/io/comparator/DefaultFileComparator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ public class DefaultFileComparator extends AbstractFileComparator implements Ser
5959
/** Singleton reverse default comparator instance */
6060
public static final Comparator<File> DEFAULT_REVERSE = new ReverseFileComparator(DEFAULT_COMPARATOR);
6161

62+
/**
63+
* Constructs a new instance.
64+
*/
65+
public DefaultFileComparator() {
66+
// empty
67+
}
68+
6269
/**
6370
* Compares the two files using the {@link File#compareTo(File)} method.
6471
*

src/main/java/org/apache/commons/io/input/TimestampedObserver.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public class TimestampedObserver extends Observer {
4545
private volatile Instant closeInstant;
4646
private final Instant openInstant = Instant.now();
4747

48+
/**
49+
* Constructs a new instance.
50+
*/
51+
public TimestampedObserver() {
52+
// empty
53+
}
54+
4855
@Override
4956
public void closed() throws IOException {
5057
closeInstant = Instant.now();

src/main/java/org/apache/commons/io/output/StringBuilderWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
public class StringBuilderWriter extends Writer implements Serializable {
3838

3939
private static final long serialVersionUID = -146927496096066153L;
40-
40+
4141
/** The append target. */
4242
private final StringBuilder builder;
4343

@@ -123,7 +123,7 @@ public void flush() {
123123
}
124124

125125
/**
126-
* Returns the underlying builder.
126+
* Gets the underlying builder.
127127
*
128128
* @return The underlying builder
129129
*/

0 commit comments

Comments
 (0)