Skip to content

Enforce, document thread-safety of CsvSchema #554

@cowwoc

Description

@cowwoc

Unless I'm mistaken,

protected int _features = DEFAULT_ENCODING_FEATURES;
seems to be the only mutable field in CsvSchema and it could be made final as well.

If CsvSchema is immutable and/or thread-safe, it would be helpful for the documentation to state as much. You could also convert _features to a final field which would make this more clear on an implementation-level. Instead of setting _features multiple times, you could move this logic into the constructors and only assign it once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions