Avoid unnecessary String concatenation

pull/47/head
Andrew Gaul 2015-03-03 16:50:06 -08:00
rodzic 335e735c5b
commit cbac36efdd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -62,7 +62,7 @@ public final class S3Proxy {
checkNotNull(endpoint);
// TODO: allow service paths?
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) ^
!Strings.isNullOrEmpty(credential),
"Must provide both identity and credential");