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

IMap:tryRemove(K key, long timeout, TimeUnit timeunit) Javadoc is not correct #8884

Closed
MeYoGui opened this issue Sep 14, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@MeYoGui
Copy link

commented Sep 14, 2016

I was looking for a "remove" method on IMap that doesn't return the previous value (in order to avoid deserialization). I found "tryRemove" and here is his Javadoc :

http://docs.hazelcast.org/docs/3.7/javadoc/com/hazelcast/core/IMap.html#tryRemove(K,%20long,%20java.util.concurrent.TimeUnit)

I think that the "Warning-2:" isn't correct because this method does return only a boolean. It's a little bit confusing in here.

Am I correct ?

Have a good day 😄

Edit : by the way, the correct method for what I expected was "delete"

pveentjer added a commit to pveentjer/hazelcast that referenced this issue Sep 19, 2016

@pveentjer pveentjer added this to the 3.8 milestone Sep 19, 2016

@pveentjer

This comment has been minimized.

Copy link
Member

commented Sep 19, 2016

Thanks for pointing out the error in the javadoc

tombujok added a commit to tombujok/hazelcast that referenced this issue Sep 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.