We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
StructureSet does never remove the element at index 0:
public boolean remove(Object o) { int idx = indexOf(o); if (idx != -1) { if (--count > 0) { elements[idx] = elements[count]; elements[count] = null; } return true; } return false; }
Can be fixed by moving the null assign outside of the if-block or by changing the > to >=.
The text was updated successfully, but these errors were encountered:
Pull request and associated unit test are welcome. Confirmed by visual inspection and analysis, but I won’t be there for everyone’s build :)
On Mar 20, 2015, at 9:14 AM, Jari-Pekka Ryynänen [email protected] wrote: StructureSet does never remove the element at index 0: public boolean remove(Object o) { int idx = indexOf(o); if (idx != -1 ) { if (--count > 0 ) { elements[idx] elements[count]; elements[count] = null ; } return true ; } return false ; } Can be fixed by moving the null assign outside of the if-block or by changing the > to >=. — Reply to this email directly or view it on GitHub.
On Mar 20, 2015, at 9:14 AM, Jari-Pekka Ryynänen [email protected] wrote:
public boolean remove(Object o) {
int idx = indexOf(o);
if (idx != -1 ) {
if (--count > 0 ) {
elements[count]; elements[count] = null ; }
return true ; }
return false ; }
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
Issue java-native-access#413: Structure leaves always one element in …
bd3f127
…ThreadLocal set
Merge pull request #420 from sjappig/master
5a4d392
Issue #413: Structure leaves always one element in ThreadLocal set
No branches or pull requests
StructureSet does never remove the element at index 0:
Can be fixed by moving the null assign outside of the if-block or by changing the > to >=.
The text was updated successfully, but these errors were encountered: