Skip to content

Commit a4ea76c

Browse files
committed
ktlint
1 parent 739f90b commit a4ea76c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

compiler/src/test/java/com/squareup/anvil/compiler/KspContributionMergerTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,13 @@ class KspContributionMergerTest {
137137
componentProcessingMode = ComponentProcessingMode.KSP,
138138
expectExitCode = KotlinCompilation.ExitCode.OK,
139139
) {
140-
val factoryClass = classLoader.loadClass("com.squareup.test.MergedComponentInterface\$Factory")
140+
val factoryClass = classLoader.loadClass(
141+
"com.squareup.test.MergedComponentInterface\$Factory",
142+
)
141143
val createMethod = factoryClass.getMethod("create", Int::class.java)
142144
val parameter = createMethod.parameters.first()
143145

146+
// Access all annotations and find the one with correct name
144147
val annotation = parameter.annotations.first {
145148
it.annotationClass.qualifiedName == "com.squareup.test.QualifierWithArg"
146149
}

0 commit comments

Comments
 (0)