Skip to content

Commit 1c3e894

Browse files
committed
nit
1 parent 7d67c60 commit 1c3e894

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@
3030
import org.apache.hadoop.util.JsonSerialization;
3131
import org.apache.hadoop.util.Timer;
3232

33-
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_CLIENT_ID_KEY;
34-
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_REFRESH_URL_KEY;
35-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.ACCESS_TOKEN;
36-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_CREDENTIALS;
37-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_ID;
38-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_SECRET;
39-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.EXPIRES_IN;
40-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.GRANT_TYPE;
41-
import static org.apache.hadoop.hdfs.web.oauth2.Utils.notNull;
42-
4333
import org.apache.http.HttpEntity;
4434
import org.apache.http.HttpStatus;
4535
import org.apache.http.client.config.RequestConfig;
@@ -52,6 +42,16 @@
5242
import org.apache.http.impl.client.HttpClientBuilder;
5343
import org.apache.http.message.BasicNameValuePair;
5444

45+
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_CLIENT_ID_KEY;
46+
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_REFRESH_URL_KEY;
47+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.ACCESS_TOKEN;
48+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_CREDENTIALS;
49+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_ID;
50+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_SECRET;
51+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.EXPIRES_IN;
52+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.GRANT_TYPE;
53+
import static org.apache.hadoop.hdfs.web.oauth2.Utils.notNull;
54+
5555
/**
5656
* Obtain an access token via the credential-based OAuth2 workflow. This
5757
* abstract class requires only that implementations provide the credential,

0 commit comments

Comments
 (0)