Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(model): Stop implementing Comparable with DependencyReference
The first two test cases of `AnalyzerResultBuilder` [1] compare instances of `DependencyReference`s in their assertion. Without the `Comparable` interface implemented, these assertions fail because the equality is changed to compare whether the instances (memory locations) are the same. So, turn the `DependencyReference` into a data class to fix that. [1]: https://github.com/oss-review-toolkit/ort/blob/41b450b11c5930179016ba1a54d77e03f0c70b4c/analyzer/src/test/kotlin/AnalyzerResultBuilderTest.kt#L128-L154 Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information