[DS-707] Style / readability fixes

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5579 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-24 09:06:59 +00:00
parent 72e9793c81
commit 6f9d4e28ab
155 changed files with 2194 additions and 545 deletions

View File

@@ -170,7 +170,9 @@ public class LDAPAuthentication
// Skip out when no netid or password is given.
if (netid == null || password == null)
return BAD_ARGS;
{
return BAD_ARGS;
}
// Locate the eperson
EPerson eperson = null;
@@ -379,25 +381,37 @@ public class LDAPAuthentication
if (attlist[0]!=null)
{
att = atts.get(attlist[0]);
if (att != null) ldapEmail = (String)att.get();
if (att != null)
{
ldapEmail = (String) att.get();
}
}
if (attlist[1]!=null)
{
att = atts.get(attlist[1]);
if (att != null) ldapGivenName = (String)att.get();
if (att != null)
{
ldapGivenName = (String) att.get();
}
}
if (attlist[2]!=null)
{
att = atts.get(attlist[2]);
if (att != null) ldapSurname = (String)att.get();
if (att != null)
{
ldapSurname = (String) att.get();
}
}
if (attlist[3]!=null)
{
att = atts.get(attlist[3]);
if (att != null) ldapPhone = (String)att.get();
if (att != null)
{
ldapPhone = (String) att.get();
}
}
}
}
@@ -422,7 +436,9 @@ public class LDAPAuthentication
try
{
if (ctx != null)
{
ctx.close();
}
}
catch (NamingException e)
{