]> source.dussan.org Git - archiva.git/commitdiff
use indexOf(char)
authorOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:34:49 +0000 (14:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:34:49 +0000 (14:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1427141 13f79535-47bb-0310-9956-ffa450edef68

redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/LdapUserMapper.java

index 614ca015859ca43f951dc837f6d209794f9d55eb..032d87a05d7d8582cdc166005dea1d6160a54cd6 100644 (file)
@@ -207,7 +207,7 @@ public class LdapUserMapper
         // however we deal with that via configuration right now so just smoke it.
         if ( encodedPassword != null && encodedPassword.startsWith( "{" ) )
         {
-            encodedPassword = encodedPassword.substring( encodedPassword.indexOf( "}" ) + 1 );
+            encodedPassword = encodedPassword.substring( encodedPassword.indexOf( '}' ) + 1 );
         }
 
         user.setEncodedPassword( encodedPassword );