Skip to content

Commit e5ec380

Browse files
committed
Merge branch '3.3.x'
Closes gh-42917
2 parents cc44336 + 5fcc585 commit e5ec380

File tree

2 files changed

+2
-2
lines changed
  • spring-boot-project
    • spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito
    • spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/QualifierDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public int hashCode() {
8181
}
8282

8383
static QualifierDefinition forElement(AnnotatedElement element) {
84-
if (element != null && element instanceof Field field) {
84+
if (element instanceof Field field) {
8585
Set<Annotation> annotations = getQualifierAnnotations(field);
8686
if (!annotations.isEmpty()) {
8787
return new QualifierDefinition(field, annotations);

spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private boolean isParentTheSame(MetadataGenerationEnvironment environment, Eleme
150150
}
151151
returnType = getTopLevelType(returnType);
152152
Element candidate = element;
153-
while (candidate != null && candidate instanceof TypeElement) {
153+
while (candidate instanceof TypeElement) {
154154
if (returnType.equals(getTopLevelType(candidate))) {
155155
return true;
156156
}

0 commit comments

Comments
 (0)