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

add eea for string and map method(s) #21

Closed
wants to merge 1 commit into from
Closed

add eea for string and map method(s) #21

wants to merge 1 commit into from

Conversation

maggu2810
Copy link
Contributor

No description provided.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
@vorburger vorburger self-requested a review September 16, 2017 22:25
entrySet
()Ljava/util/Set<Ljava/util/Map$Entry<TK;TV;>;>;
()Ljava/util/Set<L1java/util/Map$Entry<TK;TV;>;>;
get
(Ljava/lang/Object;)TV;
(Ljava/lang/Object;)T0+V;
(L1java/lang/Object;)T0V;
Copy link
Member

@vorburger vorburger Sep 16, 2017

Choose a reason for hiding this comment

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

@maggu2810 do you happen to know what this change means?

I'm not yet used to reading this syntax.. ;) In an ideal world, we should have #16, one day...

remove
(Ljava/lang/Object;)TV;
(Ljava/lang/Object;)T0V;
(L1java/lang/Object;)T0V;
Copy link
Member

Choose a reason for hiding this comment

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

and also this, as above, do you happen to know what this changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Nullable T remove(@NonNull Object);

It states that the argument must not be null and the return value could be null.

The JavaDoc states:

Returns the value to which this map previously associated the key, or null if the map contained no mapping for the key.

But it also states:

NullPointerException - if the specified key or value is null, and this map does not permit null keys or values (optional)

So, a Map itself does not forbid a nullable key (correct?).

I will close this PR. I was not aware that the Map interface allows null keys.

Sorry.

Copy link
Member

Choose a reason for hiding this comment

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

So, a Map itself does not forbid a nullable key (correct?).

Yeah I think what that means is basically "it depends on the implementation" - PITA.

Sorry. I will close this PR. I was not aware that the Map interface allows null keys.

don't be sorry - thanks a lot for taking time to contribute to this at all - community appreciates it!

I thought your other contributions here, the additions apart from the suggested changes, would still be very useful - don't you want to re-open this and just undo the changes instead? Then I'd love the merge it with just the proposed additions! (With a comment like in #23.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have already other annotations added in my local copy, so also the topic needs to be changed.
I will create another PR later with a bunch of files.

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

Successfully merging this pull request may close these issues.

2 participants