avoid toString of String

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1427139 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-31 14:34:21 +00:00
parent a522ed98fb
commit 8b538cf1ad
2 changed files with 2 additions and 2 deletions

View 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 );

View 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 );