Skip to content

Commit 09f66ed

Browse files
Haizhou ZhaoHaizhou Zhao
Haizhou Zhao
authored and
Haizhou Zhao
committed
checkstyle
1 parent 762df38 commit 09f66ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

open-api/src/testFixtures/java/org/apache/iceberg/rest/RESTServerExtension.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*/
1919
package org.apache.iceberg.rest;
2020

21-
import static org.apache.iceberg.rest.RESTCatalogServer.REST_PORT;
22-
2321
import java.util.Map;
2422
import org.apache.iceberg.relocated.com.google.common.collect.Maps;
2523
import org.junit.jupiter.api.extension.AfterAllCallback;
@@ -41,8 +39,9 @@ public RESTServerExtension() {
4139

4240
public RESTServerExtension(Map<String, String> config) {
4341
Map<String, String> conf = Maps.newHashMap(config);
44-
if (conf.containsKey(REST_PORT) && conf.get(REST_PORT).equals(FREE_PORT)) {
45-
conf.put(REST_PORT, String.valueOf(RCKUtils.findFreePort()));
42+
if (conf.containsKey(RESTCatalogServer.REST_PORT)
43+
&& conf.get(RESTCatalogServer.REST_PORT).equals(FREE_PORT)) {
44+
conf.put(RESTCatalogServer.REST_PORT, String.valueOf(RCKUtils.findFreePort()));
4645
}
4746
this.config = conf;
4847
}

0 commit comments

Comments
 (0)