kopia lustrzana https://github.com/gaul/s3proxy
Avoid unnecessary String concatenation
rodzic
335e735c5b
commit
cbac36efdd
|
@ -62,7 +62,7 @@ public final class S3Proxy {
|
||||||
checkNotNull(endpoint);
|
checkNotNull(endpoint);
|
||||||
// TODO: allow service paths?
|
// TODO: allow service paths?
|
||||||
checkArgument(endpoint.getPath().isEmpty(),
|
checkArgument(endpoint.getPath().isEmpty(),
|
||||||
"endpoint path must be empty, was: " + endpoint.getPath());
|
"endpoint path must be empty, was: %s", endpoint.getPath());
|
||||||
checkArgument(Strings.isNullOrEmpty(identity) ^
|
checkArgument(Strings.isNullOrEmpty(identity) ^
|
||||||
!Strings.isNullOrEmpty(credential),
|
!Strings.isNullOrEmpty(credential),
|
||||||
"Must provide both identity and credential");
|
"Must provide both identity and credential");
|
||||||
|
|
Ładowanie…
Reference in New Issue