AUthHeader indentation fix
This commit is contained in:
parent
ef1160eda8
commit
648812a267
|
@ -36,10 +36,10 @@ public class AuthorizationHeader {
|
||||||
|
|
||||||
public static AuthorizationHeader fromUserAndPassword(String user, String password) throws InvalidAuthorizationHeaderException {
|
public static AuthorizationHeader fromUserAndPassword(String user, String password) throws InvalidAuthorizationHeaderException {
|
||||||
try {
|
try {
|
||||||
String[] numberAndId = user.split("\\.");
|
String[] numberAndId = user.split("\\.");
|
||||||
return new AuthorizationHeader(numberAndId[0],
|
return new AuthorizationHeader(numberAndId[0],
|
||||||
numberAndId.length > 1 ? Long.parseLong(numberAndId[1]) : 1,
|
numberAndId.length > 1 ? Long.parseLong(numberAndId[1]) : 1,
|
||||||
password);
|
password);
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
throw new InvalidAuthorizationHeaderException(nfe);
|
throw new InvalidAuthorizationHeaderException(nfe);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue