Added braces to if else.
This commit is contained in:
@@ -135,12 +135,13 @@ 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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// encrypt
|
||||
public static final String ENCRYPT_DECRYPT_INPUT_URI = "input_uri";
|
||||
|
||||
@@ -44,12 +44,13 @@ 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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// possible data keys for messages
|
||||
public static final String DATA_ERROR = "error";
|
||||
|
||||
Reference in New Issue
Block a user