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,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];
}
}
}

View File

@ -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];
}
}
}