diff --git a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java index 3e65cb3ebb2..40d8c77feb4 100644 --- a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java +++ b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java @@ -80,8 +80,7 @@ public class PasswordCredentials { @Override public String toString() { - return "user '" + username + '\'' + - " with password of length " + ((password == null) ? 0 : password.length()); + return "PasswordCredentials{username='" + username + "'}"; } }