Skip to content

Conversation

@hiranya911
Copy link
Contributor

FirebaseApp is expected to return a mutable list of apps (check the javadoc of the getApp method);

Hiding a couple of internal members in Query (these were missed in the previous PR, and triggers doc build errors if not hidden -- since their return types are already hidden)

// TODO(arondeak): reenable persistence. See b/28158809.
synchronized (appsLock) {
return ImmutableList.copyOf(instances.values());
return new ArrayList<>(instances.values());

Choose a reason for hiding this comment

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

Hrm. I don't think there's any good reason to return a mutable list. Could we just fix the javadoc instead?

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 prefer that too. Changed to ImmutableList and updated the Javadoc to just say returns a "List". User code should not make any assumptions about the behavior of the List we return.

Copy link

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

LGTM

@hiranya911 hiranya911 merged commit 93ad42a into master Apr 20, 2017
@hiranya911 hiranya911 deleted the hkj-minor-fixes branch April 20, 2017 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants