Package org.ossreviewtoolkit.model
Class SnippetFinding
-
- All Implemented Interfaces:
public final class SnippetFindingA class representing the snippet findings for a source file location. A snippet finding is a code snippet from another origin, matching the code being scanned. It is meant to be reviewed by an operator as it could be a false positive.
-
-
Field Summary
Fields Modifier and Type Field Description private final TextLocationsourceLocationprivate final Set<Snippet>snippets
-
Constructor Summary
Constructors Constructor Description SnippetFinding(TextLocation sourceLocation, Set<Snippet> snippets)
-
Method Summary
Modifier and Type Method Description final TextLocationgetSourceLocation()The text location in the scanned source file where the snippet has matched. final Set<Snippet>getSnippets()The corresponding snippets. -
-
Constructor Detail
-
SnippetFinding
SnippetFinding(TextLocation sourceLocation, Set<Snippet> snippets)
-
-
Method Detail
-
getSourceLocation
final TextLocation getSourceLocation()
The text location in the scanned source file where the snippet has matched.
-
getSnippets
final Set<Snippet> getSnippets()
The corresponding snippets.
-
-
-
-