Skip to content

Commit b5e1ed5

Browse files
committed
nit
1 parent 1c3e894 commit b5e1ed5

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/ConfRefreshTokenBasedAccessTokenProvider.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,9 @@
2929
import org.apache.hadoop.hdfs.web.URLConnectionFactory;
3030
import org.apache.hadoop.util.JsonSerialization;
3131
import org.apache.hadoop.util.Timer;
32+
3233
import org.apache.http.HttpEntity;
3334
import org.apache.http.HttpStatus;
34-
35-
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_CLIENT_ID_KEY;
36-
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.OAUTH_REFRESH_URL_KEY;
37-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.ACCESS_TOKEN;
38-
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.CLIENT_ID;
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.OAuth2Constants.REFRESH_TOKEN;
42-
import static org.apache.hadoop.hdfs.web.oauth2.Utils.notNull;
43-
4435
import org.apache.http.client.config.RequestConfig;
4536
import org.apache.http.client.entity.EntityBuilder;
4637
import org.apache.http.client.methods.CloseableHttpResponse;
@@ -51,6 +42,15 @@
5142
import org.apache.http.impl.client.HttpClientBuilder;
5243
import org.apache.http.message.BasicNameValuePair;
5344

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_ID;
49+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.EXPIRES_IN;
50+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.GRANT_TYPE;
51+
import static org.apache.hadoop.hdfs.web.oauth2.OAuth2Constants.REFRESH_TOKEN;
52+
import static org.apache.hadoop.hdfs.web.oauth2.Utils.notNull;
53+
5454
/**
5555
* Supply a access token obtained via a refresh token (provided through the
5656
* Configuration using the second half of the

0 commit comments

Comments
 (0)