Added braces to if else.

This commit is contained in:
danielnelz 2015-03-09 20:14:11 +01:00
parent 17301be2ca
commit 7d27faf00c
2 changed files with 6 additions and 4 deletions

View File

@ -135,12 +135,13 @@ public class KeychainIntentService extends IntentService implements Progressable
private static final IOType[] values = values(); private static final IOType[] values = values();
public static IOType fromInt(int n) { public static IOType fromInt(int n) {
if(n >= values.length) if(n >= values.length) {
return UNKNOWN; return UNKNOWN;
else } else {
return values[n]; return values[n];
} }
} }
}
// encrypt // encrypt
public static final String ENCRYPT_DECRYPT_INPUT_URI = "input_uri"; public static final String ENCRYPT_DECRYPT_INPUT_URI = "input_uri";

View File

@ -44,12 +44,13 @@ public class KeychainIntentServiceHandler extends Handler {
public static MessageStatus fromInt(int n) public static MessageStatus fromInt(int n)
{ {
if(n >= values.length) if(n >= values.length) {
return UNKNOWN; return UNKNOWN;
else } else {
return values[n]; return values[n];
} }
} }
}
// possible data keys for messages // possible data keys for messages
public static final String DATA_ERROR = "error"; public static final String DATA_ERROR = "error";