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

Set modified by PeopleApiClient.getConnectionsById(String, Set<ProfileField>, int, int) #135

Open
GoogleCodeExporter opened this issue Aug 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I find it alarming that:

com.google.code.linkedinapi.client.PeopleApiClient.getConnectionsById(String, 
Set<ProfileField>, int, int)

Will attempt to modify the Set you pass in. I see this as potentially a 
threadsafety issue and will fail if you pass an immutable Set like Guava's 
ImmutableSet. This is a common scenario where you make the Set of fields a 
static final.

The method should rebuild the a Hash Set only if its missing the CONNECT_FIELDS.

Original issue reported on code.google.com by adam.g...@snaphop.com on 23 Mar 2013 at 10:00

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

No branches or pull requests

1 participant