aboutsummaryrefslogtreecommitdiff
path: root/tvsaver/saver2v2/save_annotation.go
diff options
context:
space:
mode:
Diffstat (limited to 'tvsaver/saver2v2/save_annotation.go')
-rw-r--r--tvsaver/saver2v2/save_annotation.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/tvsaver/saver2v2/save_annotation.go b/tvsaver/saver2v2/save_annotation.go
index ddfe483..f5ea893 100644
--- a/tvsaver/saver2v2/save_annotation.go
+++ b/tvsaver/saver2v2/save_annotation.go
@@ -6,10 +6,11 @@ import (
"fmt"
"io"
- "github.com/spdx/tools-golang/spdx"
+ "github.com/spdx/tools-golang/spdx/common"
+ "github.com/spdx/tools-golang/spdx/v2_2"
)
-func renderAnnotation2_2(ann *spdx.Annotation2_2, w io.Writer) error {
+func renderAnnotation2_2(ann *v2_2.Annotation, w io.Writer) error {
if ann.Annotator.Annotator != "" && ann.Annotator.AnnotatorType != "" {
fmt.Fprintf(w, "Annotator: %s: %s\n", ann.Annotator.AnnotatorType, ann.Annotator.Annotator)
}
@@ -19,7 +20,7 @@ func renderAnnotation2_2(ann *spdx.Annotation2_2, w io.Writer) error {
if ann.AnnotationType != "" {
fmt.Fprintf(w, "AnnotationType: %s\n", ann.AnnotationType)
}
- annIDStr := spdx.RenderDocElementID(ann.AnnotationSPDXIdentifier)
+ annIDStr := common.RenderDocElementID(ann.AnnotationSPDXIdentifier)
if annIDStr != "SPDXRef-" {
fmt.Fprintf(w, "SPDXREF: %s\n", annIDStr)
}