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

redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/DefaultUtilServices.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/apache/archiva/redback/users/ldap/LdapUserManager.java

index ab7fca0916211189bd58038409661bf1f35fd9c4..73f856757bd24cd99ed0a5dde8286da875a4fe6b 100644 (file)
@@ -139,7 +139,7 @@ public class DefaultUtilServices
                 resourceName = resourceName + "_" + locale;
             }
             resourceName = resourceName + ".properties";
-            is = Thread.currentThread().getContextClassLoader().getResourceAsStream( resourceName.toString() );
+            is = Thread.currentThread().getContextClassLoader().getResourceAsStream( resourceName );
             if ( is != null )
             {
                 properties.load( is );
index fc711901ff9123b906f3eea130a2181ab5cfea7e..af76e1310de438a393f97bdddbb5f05ab3428e1b 100644 (file)
@@ -421,7 +421,7 @@ public class LdapUserManager
 
         // REDBACK-289/MRM-1488
         // look for the user in the cache first
-        LdapUser ldapUser = ldapCacheService.getUser( principal.toString() );
+        LdapUser ldapUser = ldapCacheService.getUser( principal );
         if ( ldapUser != null )
         {
             log.debug( "User {} found in cache.", principal );