mirror of
https://github.com/google/nomulus
synced 2026-08-18 21:26:16 +00:00
Remove unnecessary generic type arguments
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=175155365
This commit is contained in:
@@ -30,7 +30,7 @@ public class AuthModule {
|
||||
@Provides
|
||||
ImmutableList<AuthenticationMechanism> provideApiAuthenticationMechanisms(
|
||||
OAuthAuthenticationMechanism oauthAuthenticationMechanism) {
|
||||
return ImmutableList.<AuthenticationMechanism>of(
|
||||
return ImmutableList.of(
|
||||
oauthAuthenticationMechanism);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public abstract class AuthResult {
|
||||
}
|
||||
|
||||
public static AuthResult create(AuthLevel authLevel) {
|
||||
return new AutoValue_AuthResult(authLevel, Optional.<UserAuthInfo>empty());
|
||||
return new AutoValue_AuthResult(authLevel, Optional.empty());
|
||||
}
|
||||
|
||||
public static AuthResult create(AuthLevel authLevel, @Nullable UserAuthInfo userAuthInfo) {
|
||||
|
||||
@@ -39,7 +39,7 @@ public abstract class UserAuthInfo {
|
||||
|
||||
public static UserAuthInfo create(
|
||||
User user, boolean isUserAdmin) {
|
||||
return new AutoValue_UserAuthInfo(user, isUserAdmin, Optional.<OAuthTokenInfo>empty());
|
||||
return new AutoValue_UserAuthInfo(user, isUserAdmin, Optional.empty());
|
||||
}
|
||||
|
||||
public static UserAuthInfo create(
|
||||
|
||||
Reference in New Issue
Block a user