AUthHeader indentation fix

This commit is contained in:
Matt Corallo 2014-01-08 15:33:33 -10:00
parent ef1160eda8
commit 648812a267
1 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ public class AuthorizationHeader {
public static AuthorizationHeader fromUserAndPassword(String user, String password) throws InvalidAuthorizationHeaderException {
try {
String[] numberAndId = user.split("\\.");
return new AuthorizationHeader(numberAndId[0],
numberAndId.length > 1 ? Long.parseLong(numberAndId[1]) : 1,
password);
String[] numberAndId = user.split("\\.");
return new AuthorizationHeader(numberAndId[0],
numberAndId.length > 1 ? Long.parseLong(numberAndId[1]) : 1,
password);
} catch (NumberFormatException nfe) {
throw new InvalidAuthorizationHeaderException(nfe);
}