Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npe on null duplication store policy #22

Merged
merged 4 commits into from
Feb 5, 2019

Conversation

dbernstein
Copy link
Member

@dbernstein dbernstein changed the base branch from master to develop February 4, 2019 16:55
@@ -41,6 +43,9 @@

private List<String> spacesToIgnore = new LinkedList<>();

private static Set<DuplicationStorePolicy> EMPTY_SET =
Collections.synchronizedSet( new HashSet<DuplicationStorePolicy>( 0 ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps Collections.unmodifiableSet() would be a better choice here? I don't see a need to synchronize on an object that's not meant to be changed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - I intended an unmodifiableSet.

@bbranan bbranan merged commit 139c921 into develop Feb 5, 2019
@bbranan bbranan deleted the npe-on-null-duplication-store-policy branch February 5, 2019 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants