Skip to content

Commit 2c5ba0e

Browse files
committed
sonar finding on redundant toString
1 parent 8128831 commit 2c5ba0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/test/java/dev/findfirst/security/oauth2/Oauth2LoginSuccessHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void authenticateGithubUser() throws Exception {
6565
}
6666

6767
private void authenticateUserByProvider(String provider) throws Exception {
68-
OAuth2AuthenticationToken oAuthToken = mockAuthentication(provider.toString().toLowerCase(), ID).getFirst();
68+
OAuth2AuthenticationToken oAuthToken = mockAuthentication(provider.toLowerCase(), ID).getFirst();
6969

7070
MockHttpServletResponse response = new MockHttpServletResponse();
7171
oAuthHandler.onAuthenticationSuccess(new MockHttpServletRequest(), response, oAuthToken);

0 commit comments

Comments
 (0)