Skip to content

Commit

Permalink
chore(providers): Turn config classes into data classes
Browse files Browse the repository at this point in the history
These are property-only classes which are a perfect fit for data
classes.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 5, 2023
1 parent 0ce3a4f commit cb87341
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import org.ossreviewtoolkit.utils.common.getDuplicates
import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CONFIGURATIONS_DIRNAME
import org.ossreviewtoolkit.utils.ort.ortConfigDirectory

class DirPackageConfigurationProviderConfig(
data class DirPackageConfigurationProviderConfig(
/**
* The path of the package configuration directory.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import org.ossreviewtoolkit.utils.spdx.toSpdx

import retrofit2.HttpException

class ClearlyDefinedPackageCurationProviderConfig(
data class ClearlyDefinedPackageCurationProviderConfig(
/**
* The URL of the ClearlyDefined server to use.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CURATIONS_DIRNAME
import org.ossreviewtoolkit.utils.ort.ORT_PACKAGE_CURATIONS_FILENAME
import org.ossreviewtoolkit.utils.ort.ortConfigDirectory

class FilePackageCurationProviderConfig(
data class FilePackageCurationProviderConfig(
/**
* The path of the package curation file or directory.
*/
Expand Down

0 comments on commit cb87341

Please sign in to comment.