Migrate @Provides(type=SET_VALUES) to @ElementsIntoSet

See Rosie [] for context.

We've already switched over to using Dagger 2.4 in respositories.bzl,
so this change is fine for our open source drop.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=121863923
This commit is contained in:
mcilwain 2016-05-09 12:25:29 -07:00 committed by Justine Tunney
parent 047bbf186e
commit b60ceda055
4 changed files with 12 additions and 12 deletions

View file

@ -14,8 +14,6 @@
package google.registry.groups;
import static dagger.Provides.Type.SET_VALUES;
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
import com.google.api.services.groupssettings.Groupssettings;
import com.google.api.services.groupssettings.GroupssettingsScopes;
@ -23,6 +21,7 @@ import com.google.common.collect.ImmutableSet;
import dagger.Module;
import dagger.Provides;
import dagger.multibindings.ElementsIntoSet;
import google.registry.config.ConfigModule.Config;
import google.registry.request.DelegatedOAuthScopes;
@ -44,7 +43,8 @@ import javax.inject.Named;
public final class GroupssettingsModule {
/** Provides OAuth2 scopes for the Groupssettings service needed by Domain Registry. */
@Provides(type = SET_VALUES)
@Provides
@ElementsIntoSet
@DelegatedOAuthScopes
static Set<String> provideGroupssettingsOAuthScopes() {
return ImmutableSet.of(GroupssettingsScopes.APPS_GROUPS_SETTINGS);