File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
spring-web/src/main/java/org/springframework/web/util Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 38
38
* Extension of {@link UriComponents} for hierarchical URIs.
39
39
*
40
40
* @author Arjen Poutsma
41
- * @since 3.2
41
+ * @since 3.1.3
42
42
* @see <a href="http://tools.ietf.org/html/rfc3986#section-1.2.3">Hierarchical URIs</a>
43
43
*/
44
44
final class HierarchicalUriComponents extends UriComponents {
@@ -421,12 +421,10 @@ public boolean equals(Object obj) {
421
421
if (this == obj ) {
422
422
return true ;
423
423
}
424
- if (!(obj instanceof OpaqueUriComponents )) {
424
+ if (!(obj instanceof HierarchicalUriComponents )) {
425
425
return false ;
426
426
}
427
-
428
427
HierarchicalUriComponents other = (HierarchicalUriComponents ) obj ;
429
-
430
428
if (ObjectUtils .nullSafeEquals (getScheme (), other .getScheme ())) {
431
429
return false ;
432
430
}
@@ -448,7 +446,6 @@ public boolean equals(Object obj) {
448
446
if (ObjectUtils .nullSafeEquals (getFragment (), other .getFragment ())) {
449
447
return false ;
450
448
}
451
-
452
449
return true ;
453
450
}
454
451
You can’t perform that action at this time.
0 commit comments