Skip to content

Commit

Permalink
fix(RequirementsCommand): Account for new scanner constructors
Browse files Browse the repository at this point in the history
This is a fixup for dd70b72.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 6, 2023
1 parent 1c4c0fc commit 7b4fc1e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import org.ossreviewtoolkit.analyzer.PackageManager
import org.ossreviewtoolkit.downloader.VersionControlSystem
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.config.ScannerConfiguration
import org.ossreviewtoolkit.plugins.commands.api.OrtCommand
import org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper
import org.ossreviewtoolkit.utils.common.CommandLineTool
Expand Down Expand Up @@ -91,8 +90,8 @@ class RequirementsCommand : OrtCommand(
logger.debug { "$it is a $category." }
it.getDeclaredConstructor(
String::class.java,
ScannerConfiguration::class.java
).newInstance("", ScannerConfiguration())
Map::class.java
).newInstance("", emptyMap<String, String>())
}

VersionControlSystem::class.java.isAssignableFrom(it) -> {
Expand Down

0 comments on commit 7b4fc1e

Please sign in to comment.