Skip to content

Commit 6ce2028

Browse files
committed
Javadoc: Add missing constructor Javadoc comments
1 parent d29a7b7 commit 6ce2028

16 files changed

Lines changed: 114 additions & 1 deletion

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,11 @@ public static void track(final String path, final Object marker) {
155155
public static void track(final String path, final Object marker, final FileDeleteStrategy deleteStrategy) {
156156
INSTANCE.track(path, marker, deleteStrategy);
157157
}
158+
159+
/**
160+
* Construct a new instance.
161+
*/
162+
public FileCleaner() {
163+
// empty
164+
}
158165
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ public String getPath() {
156156
*/
157157
Thread reaper;
158158

159+
/**
160+
* Construct a new instance.
161+
*/
162+
public FileCleaningTracker() {
163+
// empty
164+
}
165+
159166
/**
160167
* Adds a tracker to the list of trackers.
161168
*

src/main/java/org/apache/commons/io/build/AbstractOrigin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public Writer getWriter(final Charset charset, final OpenOption... options) thro
605605
final T origin;
606606

607607
/**
608-
* Constructs a new instance for a subclass.
608+
* Constructs a new instance for subclasses.
609609
*
610610
* @param origin The origin.
611611
*/

src/main/java/org/apache/commons/io/build/AbstractOriginSupplier.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ protected static WriterOrigin newWriterOrigin(final Writer origin) {
187187
*/
188188
private AbstractOrigin<?, ?> origin;
189189

190+
/**
191+
* Constructs a new instance for subclasses.
192+
*/
193+
public AbstractOriginSupplier() {
194+
// empty
195+
}
196+
190197
/**
191198
* Checks whether the origin is null.
192199
*

src/main/java/org/apache/commons/io/build/AbstractStreamBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ public abstract class AbstractStreamBuilder<T, B extends AbstractStreamBuilder<T
8383
*/
8484
private IntUnaryOperator bufferSizeChecker = defaultSizeChecker;
8585

86+
/**
87+
* Constructs a new instance for subclasses.
88+
*/
89+
public AbstractStreamBuilder() {
90+
// empty
91+
}
92+
8693
/**
8794
* Applies the buffer size request.
8895
*

src/main/java/org/apache/commons/io/build/AbstractSupplier.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ public void test() {
124124
*/
125125
public abstract class AbstractSupplier<T, B extends AbstractSupplier<T, B>> implements IOSupplier<T> {
126126

127+
/**
128+
* Constructs a new instance for subclasses.
129+
*/
130+
public AbstractSupplier() {
131+
// empty
132+
}
133+
127134
/**
128135
* Returns this instance typed as the subclass type {@code B}.
129136
* <p>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ public class DirectoryFileComparator extends AbstractFileComparator implements S
6363
/** Singleton reverse default comparator instance */
6464
public static final Comparator<File> DIRECTORY_REVERSE = new ReverseFileComparator(DIRECTORY_COMPARATOR);
6565

66+
/**
67+
* Construct a new instance.
68+
*/
69+
public DirectoryFileComparator() {
70+
// empty
71+
}
72+
6673
/**
6774
* Compares the two files using the {@link File#isDirectory()} method.
6875
*

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ public class LastModifiedFileComparator extends AbstractFileComparator implement
6262
/** Reverse last modified comparator instance. */
6363
public static final Comparator<File> LASTMODIFIED_REVERSE = new ReverseFileComparator(LASTMODIFIED_COMPARATOR);
6464

65+
/**
66+
* Construct a new instance.
67+
*/
68+
public LastModifiedFileComparator() {
69+
// empty
70+
}
71+
6572
/**
6673
* Compares the last modified date/time of two files.
6774
*

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ static InputStream ifNull(final InputStream in) {
5959
return in != null ? in : INSTANCE;
6060
}
6161

62+
/**
63+
* Construct a new instance.
64+
*/
65+
public ClosedInputStream() {
66+
// empty
67+
}
68+
6269
/**
6370
* Returns -1 to indicate that the stream is closed.
6471
*

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ public class ClosedReader extends Reader {
4949
@Deprecated
5050
public static final ClosedReader CLOSED_READER = INSTANCE;
5151

52+
/**
53+
* Construct a new instance.
54+
*/
55+
public ClosedReader() {
56+
// empty
57+
}
58+
5259
@Override
5360
public void close() throws IOException {
5461
// noop

0 commit comments

Comments
 (0)