Use native constructors instead of Guava to instantiate empty collections
It's not necessary to use Guava's helper methods when instantiating empty collections. Just use the native constructors. Change-Id: I7f454909b15924ee49e149edf9f053da9f718502
This commit is contained in:
@@ -46,7 +46,7 @@ public interface GroupMembership {
|
||||
* Implementors may implement the method as:
|
||||
*
|
||||
* <pre>
|
||||
* Set<AccountGroup.UUID> r = Sets.newHashSet();
|
||||
* Set<AccountGroup.UUID> r = new HashSet<>();
|
||||
* for (AccountGroup.UUID id : groupIds)
|
||||
* if (contains(id)) r.add(id);
|
||||
* </pre>
|
||||
|
Reference in New Issue
Block a user