File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
spring-web/src/main/java/org/springframework/http Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ protected ProblemDetail() {
110
110
* @param type the problem type
111
111
*/
112
112
public void setType (URI type ) {
113
- Assert .notNull (type , "'type' is required" );
114
113
this .type = type ;
115
114
}
116
115
@@ -251,7 +250,7 @@ public Map<String, Object> getProperties() {
251
250
@ Override
252
251
public boolean equals (@ Nullable Object other ) {
253
252
return (this == other || (other instanceof ProblemDetail that &&
254
- getType (). equals ( that .getType ()) &&
253
+ ObjectUtils . nullSafeEquals ( getType (), that .getType ()) &&
255
254
ObjectUtils .nullSafeEquals (getTitle (), that .getTitle ()) &&
256
255
this .status == that .status &&
257
256
ObjectUtils .nullSafeEquals (this .detail , that .detail ) &&
You can’t perform that action at this time.
0 commit comments