mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
[DS-3782] Upgrade Commons Collections to version 4
This commit is contained in:

committed by
Tom Desair

parent
eb2b4184ef
commit
8ffbec58ca
@@ -21,6 +21,7 @@ import java.security.cert.CertificateFactory;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
@@ -28,7 +29,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.commons.collections.ListUtils;
|
||||
import org.apache.commons.lang.ArrayUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.authenticate.factory.AuthenticateServiceFactory;
|
||||
@@ -442,7 +442,7 @@ public class X509Authentication implements AuthenticationMethod {
|
||||
public List<Group> getSpecialGroups(Context context, HttpServletRequest request)
|
||||
throws SQLException {
|
||||
if (request == null) {
|
||||
return ListUtils.EMPTY_LIST;
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
Boolean authenticated = false;
|
||||
@@ -472,7 +472,7 @@ public class X509Authentication implements AuthenticationMethod {
|
||||
return groups;
|
||||
}
|
||||
|
||||
return ListUtils.EMPTY_LIST;
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user