Make "throws" clause use IOException

Now that we've updated the oauth java6 package in the open source build, we
can safely replace "Exception" with "IOException" in the throws clause of the
method that calls AuthorizationCodeInstalledApp.authorize().

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=156057190
This commit is contained in:
mmuller 2017-05-15 08:36:20 -07:00 committed by Ben McIlwain
parent fc5546ad58
commit 5ff56ac7a0

View file

@ -130,7 +130,7 @@ public class AuthModule {
/** Initiate the login flow. */ /** Initiate the login flow. */
public static void login( public static void login(
GoogleAuthorizationCodeFlow flow, GoogleAuthorizationCodeFlow flow,
@ClientScopeQualifier String clientScopeQualifier) throws Exception { @ClientScopeQualifier String clientScopeQualifier) throws IOException {
new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()) new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver())
.authorize(clientScopeQualifier); .authorize(clientScopeQualifier);
} }