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:
parent
a522ed98fb
commit
8b538cf1ad
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue