Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package ru.hh.oauth.subscribe.apis.service;
 
 
public class GoogleOAuthServiceImpl extends OAuth20ServiceImpl {
    public GoogleOAuthServiceImpl(DefaultApi20 apiOAuthConfig config) {
        super(apiconfig);
    }
    @Override
    protected <T extends AbstractRequest> T createAccessTokenRequest(final Verifier verifier, T request) {
        super.createAccessTokenRequest(verifierrequest);
        if (!getConfig().hasGrantType()) {
            request.addParameter(."authorization_code");
        }
        return (T) request;
    }
New to GrepCode? Check out our FAQ X