You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/01/30 12:59:06 UTC
[1/2] git commit: WICKET-4368 Useless concatenation with empty string
in DefaultAuthenticationStrategy.save
Updated Branches:
refs/heads/master dd243ea4d -> e64e617bd
WICKET-4368
Useless concatenation with empty string in DefaultAuthenticationStrategy.save
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e64e617b
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e64e617b
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e64e617b
Branch: refs/heads/master
Commit: e64e617bdc7218e9b029b0997ee1467b0169ca8f
Parents: 6021970
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jan 30 13:58:59 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jan 30 13:58:59 2012 +0200
----------------------------------------------------------------------
.../strategy/DefaultAuthenticationStrategy.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/e64e617b/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java b/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java
index 953a908..a497ba0 100644
--- a/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java
+++ b/wicket-core/src/main/java/org/apache/wicket/authentication/strategy/DefaultAuthenticationStrategy.java
@@ -135,7 +135,7 @@ public class DefaultAuthenticationStrategy implements IAuthenticationStrategy
@Override
public void save(final String username, final String password)
{
- String value = "" + username + VALUE_SEPARATOR + password;
+ String value = username + VALUE_SEPARATOR + password;
String encryptedValue = getCrypt().encryptUrlSafe(value);