Skip to content

Commit 5fcc585

Browse files
committed
Merge branch '3.2.x' into 3.3.x
Closes gh-42916
2 parents 4401673 + 0aff403 commit 5fcc585

File tree

2 files changed

+3
-3
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

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2024 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.
@@ -78,7 +78,7 @@ public int hashCode() {
7878
}
7979

8080
static QualifierDefinition forElement(AnnotatedElement element) {
81-
if (element != null && element instanceof Field field) {
81+
if (element instanceof Field field) {
8282
Set<Annotation> annotations = getQualifierAnnotations(field);
8383
if (!annotations.isEmpty()) {
8484
return new QualifierDefinition(field, annotations);

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

+1-1
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)