diff options
author | danielnelz <daniel.nelz@outlook.com> | 2015-03-09 20:14:11 +0100 |
---|---|---|
committer | danielnelz <daniel.nelz@outlook.com> | 2015-03-09 20:14:11 +0100 |
commit | 7d27faf00c42ce1ad6311c5fadc37c62ba999150 (patch) | |
tree | 0342434cf5e693e4795aa01b76480d11a230d155 /OpenKeychain/src/main | |
parent | 17301be2cae4742f6ff508f984730a4d44e0a66a (diff) | |
download | open-keychain-7d27faf00c42ce1ad6311c5fadc37c62ba999150.tar.gz open-keychain-7d27faf00c42ce1ad6311c5fadc37c62ba999150.tar.bz2 open-keychain-7d27faf00c42ce1ad6311c5fadc37c62ba999150.zip |
Added braces to if else.
Diffstat (limited to 'OpenKeychain/src/main')
2 files changed, 6 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java index b0453474e..9f769759e 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java @@ -135,10 +135,11 @@ public class KeychainIntentService extends IntentService implements Progressable private static final IOType[] values = values(); public static IOType fromInt(int n) { - if(n >= values.length) + if(n >= values.length) { return UNKNOWN; - else + } else { return values[n]; + } } } diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java index fe0e7bb90..c102acc32 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java @@ -44,10 +44,11 @@ public class KeychainIntentServiceHandler extends Handler { public static MessageStatus fromInt(int n) { - if(n >= values.length) + if(n >= values.length) { return UNKNOWN; - else + } else { return values[n]; + } } } |