Skip to content

Commit 4bc4844

Browse files
committed
Fix braces.
1 parent 0d26bc9 commit 4bc4844

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/main/java/com/softlayer/api/http/HttpBasicAuthCredentials.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ public HttpBasicAuthCredentials(String username, String apiKey) {
1919
*
2020
* @return String
2121
*/
22-
public String getHeader()
23-
{
22+
public String getHeader() {
2423
String authPair = username + ':' + apiKey;
2524
return "Basic " + Base64.getEncoder().encodeToString(authPair.getBytes());
2625
}

src/test/java/com/softlayer/api/http/HttpBasicAuthCredentialsTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
public class HttpBasicAuthCredentialsTest {
88

99
@Test
10-
public void testConstructor()
11-
{
10+
public void testConstructor() {
1211
HttpBasicAuthCredentials authCredentials = new HttpBasicAuthCredentials("username", "apiKey");
1312
assertEquals("username", authCredentials.username);
1413
assertEquals("apiKey", authCredentials.apiKey);
1514
}
1615

1716
@Test
18-
public void testGetHeader()
19-
{
17+
public void testGetHeader() {
2018
HttpBasicAuthCredentials authCredentials = new HttpBasicAuthCredentials("username", "apiKey");
2119
assertEquals("Basic dXNlcm5hbWU6YXBpS2V5", authCredentials.getHeader());
2220
}

0 commit comments

Comments
 (0)