Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Immutable classes getters should return unmodifiable collections #1

Open
cdalexndr opened this issue Jan 11, 2018 · 1 comment
Open

Comments

@cdalexndr
Copy link

Test case:

Url url = Urls.parse( "http://test.com/path" );
int hash = url.hashCode();
url.path().segments().add( "segment" );
int newHash = url.hashCode();
assert hash == newHash;
@EricEdens
Copy link
Owner

EricEdens commented Jan 11, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants