Fix Checkstyle violation

pull/369/head
Andrew Gaul 2021-08-21 08:13:02 +09:00
rodzic 79f12eff88
commit 899956f80f
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -453,13 +453,12 @@ public class S3ProxyHandler {
dateSkew /= 1000; dateSkew /= 1000;
} catch (IllegalArgumentException iae) { } catch (IllegalArgumentException iae) {
try { try {
dateSkew = parseIso8601(request.getHeader(HttpHeaders.DATE)); dateSkew = parseIso8601(request.getHeader(
HttpHeaders.DATE));
} catch (IllegalArgumentException iae2) { } catch (IllegalArgumentException iae2) {
throw new S3Exception(S3ErrorCode.ACCESS_DENIED, iae); throw new S3Exception(S3ErrorCode.ACCESS_DENIED, iae);
} }
} }
} else { } else {
haveDate = false; haveDate = false;
} }
@ -468,7 +467,6 @@ public class S3ProxyHandler {
} }
} }
String[] path = uri.split("/", 3); String[] path = uri.split("/", 3);
for (int i = 0; i < path.length; i++) { for (int i = 0; i < path.length; i++) {
path[i] = URLDecoder.decode(path[i], UTF_8); path[i] = URLDecoder.decode(path[i], UTF_8);