Fix checkstyle violations
This commit is contained in:
@@ -67,7 +67,7 @@ public final class WebClientExchangeTags {
|
||||
|
||||
private static String extractPath(String url) {
|
||||
String path = url.replaceFirst("^https?://[^/]+/", "");
|
||||
return path.startsWith("/") ? path : "/" + path;
|
||||
return (path.startsWith("/") ? path : "/" + path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,7 +87,7 @@ public final class WebClientExchangeTags {
|
||||
* @return the status tag
|
||||
*/
|
||||
public static Tag status(Throwable throwable) {
|
||||
return throwable instanceof IOException ? IO_ERROR : CLIENT_ERROR;
|
||||
return (throwable instanceof IOException ? IO_ERROR : CLIENT_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,7 +113,7 @@ public class HealthWebEndpointResponseMapperTests {
|
||||
SecurityContext securityContext = mock(SecurityContext.class);
|
||||
given(securityContext.getPrincipal()).willReturn(mock(Principal.class));
|
||||
given(securityContext.isUserInRole(anyString()))
|
||||
.will((Answer<Boolean>) invocation -> {
|
||||
.will((Answer<Boolean>) (invocation) -> {
|
||||
String expectedRole = invocation.getArgument(0);
|
||||
return associatedRoles.contains(expectedRole);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user