File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
spring-web/src/main/java/org/springframework/http Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1773,19 +1773,19 @@ public Set<Entry<String, List<String>>> entrySet() {
1773
1773
1774
1774
1775
1775
@ Override
1776
- public boolean equals (@ Nullable Object other ) {
1777
- if (this == other ) {
1776
+ public boolean equals (@ Nullable Object obj ) {
1777
+ if (this == obj ) {
1778
1778
return true ;
1779
1779
}
1780
- if (!(other instanceof HttpHeaders )) {
1780
+ if (!(obj instanceof HttpHeaders other )) {
1781
1781
return false ;
1782
1782
}
1783
- return unwrap (this ).equals (unwrap (( HttpHeaders ) other ));
1783
+ return unwrap (this ).equals (unwrap (other ));
1784
1784
}
1785
1785
1786
1786
private static MultiValueMap <String , String > unwrap (HttpHeaders headers ) {
1787
- while (headers .headers instanceof HttpHeaders ) {
1788
- headers = ( HttpHeaders ) headers . headers ;
1787
+ while (headers .headers instanceof HttpHeaders httpHeaders ) {
1788
+ headers = httpHeaders ;
1789
1789
}
1790
1790
return headers .headers ;
1791
1791
}
@@ -1810,8 +1810,8 @@ public String toString() {
1810
1810
* @since 5.3
1811
1811
*/
1812
1812
public static HttpHeaders readOnlyHttpHeaders (MultiValueMap <String , String > headers ) {
1813
- return (headers instanceof HttpHeaders ?
1814
- readOnlyHttpHeaders (( HttpHeaders ) headers ) : new ReadOnlyHttpHeaders (headers ));
1813
+ return (headers instanceof HttpHeaders httpHeaders ? readOnlyHttpHeaders ( httpHeaders ) :
1814
+ new ReadOnlyHttpHeaders (headers ));
1815
1815
}
1816
1816
1817
1817
/**
You can’t perform that action at this time.
0 commit comments