Skip to content

Commit 5a86162

Browse files
committed
Polish "Simplify code"
See gh-23111
1 parent ffc577b commit 5a86162

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/filter/AnnotationCustomizableTypeExcludeFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 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.

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebDriverContextCustomizerFactory.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ public boolean equals(Object obj) {
5353
if (obj == this) {
5454
return true;
5555
}
56-
return obj != null && obj.getClass() == getClass();
56+
if (obj == null || obj.getClass() != getClass()) {
57+
return false;
58+
}
59+
return true;
5760
}
5861

5962
@Override

0 commit comments

Comments
 (0)