Skip to content

Cloneable semantics / promise might not be correct #1

@lukaseder

Description

@lukaseder

Hi Peter,

So I'll just tell you my thoughts through issues, I guess that's the easiest and most trackable way to communicate. BTW, too bad you already released 1.0.0 to Maven Central. Maybe you could add a disclaimer that fluflu doesn't (yet?) follow semantic versioning: http://semver.org/

About Cloneable, your example contains a reference to:

protected List<byte[]> b = new LinkedList<>();

This list, when cloned, will not deep-clone all the byte arrays. Note, that it works for this Set:

Set<Integer> j = new HashSet<>(); 

... because Integer is immutable.

So I think that the promise of supporting Cloneable might be a false one. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions