Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 11, 2024
1 parent 4a0f460 commit 306ec3b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/org/apache/commons/io/build/AbstractSupplier.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,15 @@ public void test() {
public abstract class AbstractSupplier<T, B extends AbstractSupplier<T, B>> implements IOSupplier<T> {

/**
* Returns this instance typed as the proper subclass type.
* Returns this instance typed as the subclass type {@link B}.
* <p>
* This is the same as the expression:
* </p>
* <pre>
* (B) this
* </pre>
*
* @return this instance typed as the proper subclass type.
* @return this instance typed as the subclass type {@link B}.
*/
@SuppressWarnings("unchecked")
protected B asThis() {
Expand Down

0 comments on commit 306ec3b

Please sign in to comment.