Skip to content

Commit

Permalink
feat(Provenance): Add a LocalProvenance sub interface
Browse files Browse the repository at this point in the history
In contrast to the previously added `RemoteProvenance` stands the
`LocalProvenance`, which has no remote source, but instead references
a local input of some kind.

See [1] for more context on the new Provenance Hierarchy.

[1]: #8803 (comment)

Signed-off-by: Jens Keim <[email protected]>
  • Loading branch information
pepper-jk committed Feb 3, 2025
1 parent fd8adfb commit 2471efa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/src/main/kotlin/Provenance.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package org.ossreviewtoolkit.model

import java.nio.file.Files

Check warning on line 22 in model/src/main/kotlin/Provenance.kt

View workflow job for this annotation

GitHub Actions / qodana-scan

Unused import directive

Unused import directive

Check warning

Code scanning / detekt

Unused Imports are dead code and should be removed. Warning

The import 'java.nio.file.Files' is unused.
import java.nio.file.Path

Check warning on line 23 in model/src/main/kotlin/Provenance.kt

View workflow job for this annotation

GitHub Actions / qodana-scan

Unused import directive

Unused import directive

Check warning

Code scanning / detekt

Unused Imports are dead code and should be removed. Warning

The import 'java.nio.file.Path' is unused.
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonNode
Expand All @@ -45,6 +47,8 @@ sealed interface KnownProvenance : Provenance

sealed interface RemoteProvenance : KnownProvenance

sealed interface LocalProvenance : KnownProvenance

Check warning on line 50 in model/src/main/kotlin/Provenance.kt

View workflow job for this annotation

GitHub Actions / qodana-scan

Unused symbol

Interface "LocalProvenance" is never used

/**
* Provenance information for a source artifact.
*/
Expand Down

0 comments on commit 2471efa

Please sign in to comment.