Skip to content

Commit 28b6987

Browse files
committed
Fix checkStyle
1 parent f59697e commit 28b6987

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/minio/src/main/java/org/testcontainers/containers/MinIOContainer.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import java.util.List;
1313
import java.util.stream.Collectors;
1414

15-
import static java.lang.String.format;
16-
1715
/**
1816
* Testcontainers implementation for MinIO.
1917
* <p>
@@ -124,7 +122,7 @@ public void configure() {
124122
* @return the URL to upload/download objects from
125123
*/
126124
public String getS3URL() {
127-
return format("http://%s:%s", this.getHost(), getMappedPort(MINIO_S3_PORT));
125+
return String.format("http://%s:%s", this.getHost(), getMappedPort(MINIO_S3_PORT));
128126
}
129127

130128
/**
@@ -145,10 +143,10 @@ public String getPassword() {
145143
protected void containerIsStarted(InspectContainerResponse containerInfo) {
146144
if (!buckets.isEmpty()) {
147145
try {
148-
ExecResult setAliasExecResult = execInContainer("mc", "alias", "set", "local", format("http://localhost:%s", MINIO_S3_PORT), userName, password);
146+
ExecResult setAliasExecResult = execInContainer("mc", "alias", "set", "local", String.format("http://localhost:%s", MINIO_S3_PORT), userName, password);
149147
if (setAliasExecResult.getExitCode() == 0) {
150148
for (String bucket : buckets) {
151-
ExecResult createBucketExecResult = execInContainer("mc", "mb", format("local/%s", bucket));
149+
ExecResult createBucketExecResult = execInContainer("mc", "mb", String.format("local/%s", bucket));
152150
if (createBucketExecResult.getExitCode() == 0) {
153151
logger().info("Create bucket {}", bucket);
154152
} else {

0 commit comments

Comments
 (0)