Remove JDK 1.6 dependencies

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2009-03-18 14:53:37 +00:00
parent deef5d8e59
commit 44805a5075
3 changed files with 16 additions and 6 deletions

View File

@@ -530,7 +530,7 @@ public abstract class AbstractAuthenticationComponent implements AuthenticationC
public void setDefaultAdministratorUserNames(String defaultAdministratorUserNames)
{
Set<String> nameSet = new TreeSet<String>();
if (!defaultAdministratorUserNames.isEmpty())
if (defaultAdministratorUserNames.length() > 0)
{
nameSet.addAll(Arrays.asList(defaultAdministratorUserNames.split(",")));
}

View File

@@ -279,7 +279,7 @@ public class NTLMAuthenticationComponentImpl extends AbstractAuthenticationCompo
*/
@Managed(category="Security")
public void setDomain(String domain) {
if (!domain.isEmpty())
if (domain.length() > 0)
{
// Check if the passthru server list is already configured
@@ -306,7 +306,7 @@ public class NTLMAuthenticationComponentImpl extends AbstractAuthenticationCompo
*/
@Managed(category="Security")
public void setServers(String servers) {
if (!servers.isEmpty())
if (servers.length() > 0)
{
// Check if the passthru server list is already configured