Skip to content

Return no annotations if the annotationSelector is empty #48

Description

@sodre

This is the consistent behavior with cloud.gate.ac.uk.

final AnnotationSet defaultAnnots = doc.getAnnotations();
final Set<String> includeTypes = new HashSet<>(defaultAnnots.getAllTypes());
if (annotationSelector != null)
includeTypes.removeIf((type) -> !annotationSelector.contains(":" + type));
exportOptions.put("annotationTypes", includeTypes);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions