Skip to content

Commit

Permalink
Spring: Apply findbugs suggestions
Browse files Browse the repository at this point in the history
There was a needless String.toString() conversion.
  • Loading branch information
malkusch committed Dec 8, 2015
1 parent 7d74e89 commit 0766608
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void sendRecoveryMail(final RecoveryToken token, final UriComponentsBuil
message.setSubject(messageSource.getMessage("forgot.mail.subject", null, locale));
message.setTo(token.getUser().getEmail());

String uri = buildRecoveryURI(token, uriBuilder).toString();
String uri = buildRecoveryURI(token, uriBuilder);
message.setText(messageSource.getMessage("forgot.mail.message", new String[] { uri }, locale));

mailSender.send(message);
Expand Down

0 comments on commit 0766608

Please sign in to comment.