Skip to content

Commit e22c200

Browse files
committed
Javadoc
- Add missing @throws tags
1 parent c7af501 commit e22c200

File tree

57 files changed

+141
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+141
-12
lines changed

httpcore5/src/main/java/org/apache/hc/core5/concurrent/CancellableDependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public interface CancellableDependency extends Cancellable {
3737
/**
3838
* Sets {@link Cancellable} dependency on another ongoing process or
3939
* operation represented by {@link Cancellable}.
40+
*
41+
* @param cancellable another ongoing process or operation.
4042
*/
4143
void setDependency(Cancellable cancellable);
4244

httpcore5/src/main/java/org/apache/hc/core5/function/Callback.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/**
3131
* Abstract callback.
3232
*
33+
* @param <T> The type of object consumed by the callback.
3334
* @since 5.0
3435
*/
3536
@FunctionalInterface

httpcore5/src/main/java/org/apache/hc/core5/function/Decorator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/**
3131
* Abstract decorator.
3232
*
33+
* @param <T> The type of object to decorate.
3334
* @since 5.0
3435
*/
3536
@FunctionalInterface

httpcore5/src/main/java/org/apache/hc/core5/function/Factory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
/**
3131
* Abstract object factory.
3232
*
33+
* @param <P> The factory's input type.
34+
* @param <T> The type of object produced by this factory.
3335
* @since 5.0
3436
*/
3537
@FunctionalInterface

httpcore5/src/main/java/org/apache/hc/core5/function/Resolver.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
/**
3131
* Abstract resolver from input to output.
3232
*
33+
* @param <I> the input type.
34+
* @param <O> the output type.
3335
* @since 5.0
3436
*/
3537
@FunctionalInterface

httpcore5/src/main/java/org/apache/hc/core5/http/HttpRequestMapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public interface HttpRequestMapper<T> {
4343
* @param request the request to map to a handler
4444
* @return HTTP request handler or {@code null} if no match
4545
* is found.
46+
* @throws HttpException in case of an HTTP protocol violation.
4647
*/
4748
T resolve(HttpRequest request, HttpContext context) throws HttpException;
4849

httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/DefaultBHttpClientConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public void bind(final Socket socket) throws IOException {
180180
}
181181

182182
/**
183+
* @throws IOException in case of an I/O error.
183184
* @since 5.3
184185
*/
185186
public void bind(final SSLSocket sslSocket, final Socket baseSocket) throws IOException {

httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/DefaultBHttpServerConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public void bind(final Socket socket) throws IOException {
133133
}
134134

135135
/**
136+
* @throws IOException in case of an I/O error.
136137
* @since 5.3
137138
*/
138139
public void bind(final SSLSocket sslSocket, final Socket baseSocket) throws IOException {

httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractContentEncoder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected void assertNotCompleted() {
108108
* Flushes content of the session buffer to the channel and updates transport metrics.
109109
*
110110
* @return number of bytes written to the channel.
111-
*
111+
* @throws IOException in case of an I/O error.
112112
* @since 4.3
113113
*/
114114
protected int flushToChannel() throws IOException {
@@ -126,7 +126,7 @@ protected int flushToChannel() throws IOException {
126126
* Flushes content of the given buffer to the channel and updates transport metrics.
127127
*
128128
* @return number of bytes written to the channel.
129-
*
129+
* @throws IOException in case of an I/O error.
130130
* @since 4.3
131131
*/
132132
protected int writeToChannel(final ByteBuffer src) throws IOException {
@@ -146,7 +146,7 @@ protected int writeToChannel(final ByteBuffer src) throws IOException {
146146
* @param src source.
147147
* @param limit max number of bytes to transfer.
148148
* @return number of bytes transferred.
149-
*
149+
* @throws IOException in case of an I/O error.
150150
* @since 4.3
151151
*/
152152
protected int writeToChannel(final ByteBuffer src, final int limit) throws IOException {
@@ -159,7 +159,7 @@ protected int writeToChannel(final ByteBuffer src, final int limit) throws IOExc
159159
* @param src source.
160160
* @param limit max number of bytes to transfer.
161161
* @return number of bytes transferred.
162-
*
162+
* @throws IOException in case of an I/O error.
163163
* @since 4.3
164164
*/
165165
protected int writeToBuffer(final ByteBuffer src, final int limit) throws IOException {

httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractMessageWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public void reset() {
7979
* Writes out the first line of {@link HttpMessage}.
8080
*
8181
* @param message HTTP message.
82+
* @throws IOException in case of an I/O error.
8283
*/
8384
protected abstract void writeHeadLine(T message, CharArrayBuffer buffer) throws IOException;
8485

0 commit comments

Comments
 (0)