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
[8.2.x ] ISPN-4390 Realigned with ConcurrentHashMap from the JSR-166 repository #4560
[8.2.x ] ISPN-4390 Realigned with ConcurrentHashMap from the JSR-166 repository #4560
Conversation
@danberindei @wburns I've put the changes on this PR for 8.2.x only. I've factored out the inner classes as requested on the other PR, which I've closed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a re-alignment I tried not to be picky on the logic (I assume it's correct and there are only minor changes). The only major thing that I found are javadocs. I didn't mark all places, but please add something meaningful or just remove them.
package org.infinispan.commons.util.concurrent.jdk8backported; | ||
|
||
/** | ||
* @author Will Burns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we consider this as a public API? If so, could you please add some Javadoc (or remove it completely if we don't).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of the classes in this package are considered public API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So maybe the javadocs should be simply removed... an empty thing is just rubbish...
package org.infinispan.commons.util.concurrent.jdk8backported; | ||
|
||
/** | ||
* @author Will Burns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadocs
|
||
import java.util.Map; | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here also
import java.util.Collection; | ||
|
||
/** | ||
* // TODO: Document this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
package org.infinispan.commons.util.concurrent.jdk8backported; | ||
|
||
/** | ||
* @author Will Burns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadocs
- jsr166/src/jdk8/java/util/concurrent/ConcurrentHashMap.java 1.3 - factor out all inner classes/interfaces from BECHMV8 - refactor access to the Unsafe instace - extract the package-level logic from ThreadLocalRandom
a9403c2
to
eeadb5c
Compare
@slaskawi I've removed all the pointless javadocs |
LGTM, integrating |
Integrated, thanks Tristan! BTW - I updated fix versions for https://issues.jboss.org/browse/ISPN-4390 |
https://issues.jboss.org/browse/ISPN-4390