diff --git a/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt b/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt index 9592d6b..fb1bd5f 100644 --- a/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt +++ b/src/main/kotlin/com/netflix/nebula/dependencybase/tasks/NebulaDependencyInsightReportTask.kt @@ -137,6 +137,7 @@ open class NebulaDependencyInsightReportTask : DependencyInsightReportTask() { @Suppress("UNCHECKED_CAST") private fun DependencyInsightReporter.legacyPrepare(input: Collection, versionSelectorScheme: VersionSelectorScheme, versionComparator: VersionComparator): Collection { - return javaClass.getDeclaredMethod("prepare").invoke(input, versionSelectorScheme, versionComparator) as Collection + return javaClass.getMethod("prepare", Collection::class.java, VersionSelectorScheme::class.java, VersionComparator::class.java) + .invoke(this, input, versionSelectorScheme, versionComparator) as Collection } }