diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2016-04-29 22:37:52 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2016-04-29 22:37:52 +0200 |
commit | fad63cc76fd28f38e166864b230d304f5c34a659 (patch) | |
tree | e11f9b6c1d1a26d42d29212fc03428ec695ccd50 /OpenKeychain/src | |
parent | 7b24679094b40c0f99f11d728554bf7c288de24c (diff) | |
download | open-keychain-fad63cc76fd28f38e166864b230d304f5c34a659.tar.gz open-keychain-fad63cc76fd28f38e166864b230d304f5c34a659.tar.bz2 open-keychain-fad63cc76fd28f38e166864b230d304f5c34a659.zip |
Use StringBuilder.append() according to lint
Diffstat (limited to 'OpenKeychain/src')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java index 06b18f8e0..d2384e679 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java @@ -95,10 +95,14 @@ public abstract class KeyRing { userIdBuilder.append(userId.comment); } if (!TextUtils.isEmpty(userId.comment)) { - userIdBuilder.append(" (" + userId.comment + ")"); + userIdBuilder.append(" ("); + userIdBuilder.append(userId.comment); + userIdBuilder.append(")"); } if (!TextUtils.isEmpty(userId.email)) { - userIdBuilder.append(" <" + userId.email + ">"); + userIdBuilder.append(" <"); + userIdBuilder.append(userId.email); + userIdBuilder.append(">"); } return userIdBuilder.length() == 0 ? null : userIdBuilder.toString(); } |