Skip to content

Commit c7f6fe5

Browse files
committed
HADOOP-19417. Fix CheckStyle.
1 parent eeee495 commit c7f6fe5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestJWTRedirectAuthenticationHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ public void testOrigURLWithQueryString() throws Exception {
396396

397397
String loginURL = handler.constructLoginURL(request);
398398
assertNotNull(loginURL, "loginURL should not be null.");
399-
assertEquals("https://localhost:8443/authserver?originalUrl=" + SERVICE_URL + "?name=value", loginURL);
399+
assertEquals("https://localhost:8443/authserver?originalUrl=" +
400+
SERVICE_URL + "?name=value", loginURL);
400401
}
401402

402403
@Test

hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void testDynamicPrincipalDiscovery() throws Exception {
214214
Principal principal = new KerberosPrincipal(
215215
user + "@" + KerberosTestUtils.getRealm());
216216
boolean expected = user.startsWith("HTTP/");
217-
assertEquals(expected,
217+
assertEquals(expected,
218218
loginPrincipals.contains(principal), "checking for "+user);
219219
}
220220
}

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestFixKerberosTicketOrder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ public Void run() throws Exception {
105105
}
106106
}
107107
// make sure the first ticket is not tgt
108-
assertFalse(
109-
subject.getPrivateCredentials().stream()
108+
assertFalse(subject.getPrivateCredentials().stream()
110109
.filter(c -> c instanceof KerberosTicket)
111110
.map(c -> ((KerberosTicket) c).getServer().getName()).findFirst()
112111
.get().startsWith("krbtgt"), "The first ticket is still tgt, "

0 commit comments

Comments
 (0)