We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249faf6 commit f41ea23Copy full SHA for f41ea23
src/main/kotlin/io/github/tobi/laa/spring/boot/embedded/redis/FindTestClassAnnotations.kt
@@ -10,7 +10,7 @@ internal fun <T : Annotation> findTestClassAnnotations(
10
): List<T> {
11
var clazz = testClass
12
val mergedAnnotations = mutableListOf(search(TYPE_HIERARCHY).from(testClass))
13
- while (searchEnclosingClass(clazz) && clazz.enclosingClass != null) {
+ while (searchEnclosingClass(clazz)) {
14
clazz = clazz.enclosingClass
15
mergedAnnotations += search(TYPE_HIERARCHY).from(clazz)
16
}
0 commit comments