Skip to content

Commit ad1226f

Browse files
committed
javadoc fix getStatusCode() -> statusCode()
1 parent 7868eb6 commit ad1226f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/src/main/java/io/avaje/http/client/HttpAsyncResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface HttpAsyncResponse {
4040
*
4141
* // if throwable.getCause() is a HttpException for status code >= 300
4242
* HttpException httpException = (HttpException) throwable.getCause();
43-
* int status = httpException.getStatusCode();
43+
* int status = httpException.statusCode();
4444
*
4545
* // convert json error response body to a bean
4646
* ErrorResponse errorResponse = httpException.bean(ErrorResponse.class);
@@ -190,7 +190,7 @@ public interface HttpAsyncResponse {
190190
*
191191
* if (throwable != null) {
192192
* HttpException httpException = (HttpException) throwable.getCause();
193-
* int statusCode = httpException.getStatusCode();
193+
* int statusCode = httpException.statusCode();
194194
*
195195
* // maybe convert json error response body to a bean (using Jackson/Gson)
196196
* MyErrorBean errorResponse = httpException.bean(MyErrorBean.class);
@@ -224,7 +224,7 @@ public interface HttpAsyncResponse {
224224
*
225225
* if (throwable != null) {
226226
* HttpException httpException = (HttpException) throwable.getCause();
227-
* int statusCode = httpException.getStatusCode();
227+
* int statusCode = httpException.statusCode();
228228
* ...
229229
*
230230
* } else {

client/src/main/java/io/avaje/http/client/HttpException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
* } catch (HttpException e) {
2424
*
2525
* // obtain the statusCode from the exception ...
26-
* int statusCode = e.getStatusCode());
26+
* int statusCode = e.statusCode());
2727
*
28-
* HttpResponse<?> httpResponse = e.getHttpResponse();
28+
* HttpResponse<?> httpResponse = e.httpResponse();
2929
*
3030
* // obtain the statusCode from httpResponse ...
3131
* int statusCode = httpResponse.statusCode();

0 commit comments

Comments
 (0)