Skip to content

Commit 0daa4db

Browse files
committed
Fixes to the Javadoc in CommandFuture
1 parent d4be5d1 commit 0daa4db

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/com/github/theholywaffle/teamspeak3/api/CommandFuture.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* Basically, this class is a container for a server response which will
4747
* arrive at some time in the future. It also accounts for the possibility
4848
* that a command might fail and that a future might be cancelled by a user.
49-
* </p><p>
49+
* </p>
5050
* A {@code CommandFuture} can therefore have 4 different states:
5151
* <ul>
5252
* <li><b>Waiting</b> - No response from the server has arrived yet</li>
@@ -56,7 +56,7 @@
5656
* </ul>
5757
* You can check the state of the future using the methods {@link #isDone()},
5858
* {@link #isSuccessful()}, {@link #isFailed()} and {@link #isCancelled()}.
59-
* </p><p>
59+
* <p>
6060
* A {@code CommandFuture}'s value can be retrieved by calling {@link #get()}
6161
* or {@link #get(long, TimeUnit)}, which block the current thread until the
6262
* server response arrives. The method with a timeout should be preferred
@@ -74,7 +74,7 @@
7474
* one {@link FailureListener} registered. All {@link TS3ApiAsync} methods are
7575
* guaranteed to return a {@code CommandFuture} with no listeners registered.
7676
* </p><p>
77-
* To set the value of a {@code CommandFuture}, the {@link #set(V)} method is used;
77+
* To set the value of a {@code CommandFuture}, the {@link #set(Object)} method is used;
7878
* to notify it of a failure, {@link #fail(QueryError)} is used. You usually
7979
* shouldn't call these methods yourself, however. That's the job of the API.
8080
* </p><p>
@@ -453,7 +453,7 @@ public synchronized CommandFuture<V> onFailure(FailureListener listener) {
453453
}
454454

455455
/**
456-
* Forwards a success to another future by calling {@link #set(V)} on
456+
* Forwards a success to another future by calling {@link #set(Object)} on
457457
* that future with the value this future was set to.
458458
* <p>
459459
* This will register a {@link SuccessListener}, meaning that you will not
@@ -615,7 +615,7 @@ public void handleFailure(QueryError error) {
615615

616616
/**
617617
* A listener which will be notified if the {@link CommandFuture} succeeded.
618-
* In that case, {@link #handleSuccess(V)} will be called with the value
618+
* In that case, {@link #handleSuccess(Object)} will be called with the value
619619
* the future has been set to.
620620
* <p>
621621
* A {@code CommandFuture}'s {@code SuccessListener} can be set by calling

0 commit comments

Comments
 (0)