Skip to content

Commit a9f251d

Browse files
committed
Fix broken Javadoc links
1 parent 8e2b14a commit a9f251d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ configure(allprojects) { project ->
173173
ext.javadocLinks = [
174174
"http://docs.oracle.com/javase/8/docs/api/",
175175
"http://docs.oracle.com/javaee/7/api/",
176-
"http://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ
177-
"http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/",
176+
"https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ
177+
"https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/",
178178
"http://glassfish.java.net/nonav/docs/v3/api/",
179179
"http://docs.jboss.org/jbossas/javadoc/4.0.5/connector/",
180180
"http://docs.jboss.org/jbossas/javadoc/7.1.2.Final/",

spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -72,14 +72,14 @@ protected boolean hasError(HttpStatus statusCode) {
7272
/**
7373
* Template method called from {@link #hasError(ClientHttpResponse)}.
7474
* <p>The default implementation checks if the given status code is
75-
* {@code HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
76-
* {@code HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
75+
* {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
76+
* {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
7777
* Can be overridden in subclasses.
7878
* @param unknownStatusCode the HTTP status code as raw value
7979
* @return {@code true} if the response indicates an error; {@code false} otherwise
8080
* @since 4.3.21
81-
* @see HttpStatus.Series#CLIENT_ERROR
82-
* @see HttpStatus.Series#SERVER_ERROR
81+
* @see org.springframework.http.HttpStatus.Series#CLIENT_ERROR
82+
* @see org.springframework.http.HttpStatus.Series#SERVER_ERROR
8383
*/
8484
protected boolean hasError(int unknownStatusCode) {
8585
HttpStatus.Series series = HttpStatus.Series.resolve(unknownStatusCode);
@@ -105,9 +105,10 @@ public void handleError(ClientHttpResponse response) throws IOException {
105105
/**
106106
* Handle the error in the given response with the given resolved status code.
107107
* <p>The default implementation throws an {@link HttpClientErrorException}
108-
* if the status code is {@link HttpStatus.Series#CLIENT_ERROR}, an
109-
* {@link HttpServerErrorException} if it is {@link HttpStatus.Series#SERVER_ERROR},
110-
* and an {@link UnknownHttpStatusCodeException} in other cases.
108+
* if the status code is {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR
109+
* CLIENT_ERROR}, an {@link HttpServerErrorException} if it is
110+
* {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR SERVER_ERROR},
111+
* or an {@link UnknownHttpStatusCodeException} in other cases.
111112
* @since 5.0
112113
* @see HttpClientErrorException#create
113114
* @see HttpServerErrorException#create

0 commit comments

Comments
 (0)