Skip to content

Commit 1dff817

Browse files
authored
chore: Clean up the S3FileSystem.key2Parts method. (#476)
1 parent f132151 commit 1dff817

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/main/java/org/carlspring/cloud/storage/s3fs/S3FileSystem.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,7 @@ public String getEndpoint()
173173

174174
public String[] key2Parts(String keyParts)
175175
{
176-
String[] parts = keyParts.split(PATH_SEPARATOR);
177-
String[] split = new String[parts.length];
178-
179-
int i = 0;
180-
for (String part : parts)
181-
{
182-
split[i++] = part;
183-
}
184-
185-
return split;
176+
return keyParts.split(PATH_SEPARATOR);
186177
}
187178

188179
public int getCache()

0 commit comments

Comments
 (0)