Skip to content
Snippets Groups Projects
Commit 889da1c4 authored by Jeff Burke's avatar Jeff Burke
Browse files

s1651: fix compile warnings

parent f5ca62c6
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
<target name="test" depends="compile-test,resources"> <target name="test" depends="compile-test,resources">
<echo message="Running test" /> <echo message="Running test" />
<!-- Run the junit test suite --> Run the junit test suite
<echo message="Running test suite..." /> <echo message="Running test suite..." />
<junit printsummary="yes" haltonfailure="yes" fork="yes"> <junit printsummary="yes" haltonfailure="yes" fork="yes">
<classpath> <classpath>
...@@ -141,10 +141,10 @@ ...@@ -141,10 +141,10 @@
<pathelement path="${build}/test/class"/> <pathelement path="${build}/test/class"/>
<pathelement path="${testingJars}"/> <pathelement path="${testingJars}"/>
</classpath> </classpath>
<!--<test name="ca.nrc.cadc.ac.server.ldap.LdapDAOTest" />--> <test name="ca.nrc.cadc.ac.server.ldap.LdapDAOTest" />
<test name="ca.nrc.cadc.ac.server.ldap.LdapGroupDAOTest" /> <test name="ca.nrc.cadc.ac.server.ldap.LdapGroupDAOTest" />
<!--<test name="ca.nrc.cadc.ac.server.web.GroupActionFactoryTest" />--> <test name="ca.nrc.cadc.ac.server.web.GroupActionFactoryTest" />
<!--<test name="ca.nrc.cadc.ac.server.ldap.LdapUserDAOTest" />--> <test name="ca.nrc.cadc.ac.server.ldap.LdapUserDAOTest" />
<formatter type="plain" usefile="false" /> <formatter type="plain" usefile="false" />
</junit> </junit>
</target> </target>
......
...@@ -112,6 +112,7 @@ public class PluginFactory ...@@ -112,6 +112,7 @@ public class PluginFactory
} }
} }
@SuppressWarnings("unchecked")
public <T extends Principal> GroupPersistence<T> getGroupPersistence() public <T extends Principal> GroupPersistence<T> getGroupPersistence()
{ {
GroupPersistence<T> ret = null; GroupPersistence<T> ret = null;
...@@ -136,6 +137,7 @@ public class PluginFactory ...@@ -136,6 +137,7 @@ public class PluginFactory
return ret; return ret;
} }
@SuppressWarnings("unchecked")
public <T extends Principal> UserPersistence<T> getUserPersistence() public <T extends Principal> UserPersistence<T> getUserPersistence()
{ {
UserPersistence<T> ret = null; UserPersistence<T> ret = null;
......
...@@ -101,8 +101,7 @@ import javax.security.auth.x500.X500Principal; ...@@ -101,8 +101,7 @@ import javax.security.auth.x500.X500Principal;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
public class ACSearchRunner public class ACSearchRunner implements JobRunner
implements JobRunner
{ {
private static Logger log = Logger.getLogger(ACSearchRunner.class); private static Logger log = Logger.getLogger(ACSearchRunner.class);
...@@ -149,6 +148,7 @@ public class ACSearchRunner ...@@ -149,6 +148,7 @@ public class ACSearchRunner
log.info(endMessage); log.info(endMessage);
} }
@SuppressWarnings("unchecked")
private void search() private void search()
{ {
try try
......
...@@ -94,6 +94,7 @@ public class AddUserMemberAction extends GroupsAction ...@@ -94,6 +94,7 @@ public class AddUserMemberAction extends GroupsAction
this.userIDType = userIDType; this.userIDType = userIDType;
} }
@SuppressWarnings("unchecked")
public Object run() public Object run()
throws Exception throws Exception
{ {
......
...@@ -92,6 +92,7 @@ public class RemoveUserMemberAction extends GroupsAction ...@@ -92,6 +92,7 @@ public class RemoveUserMemberAction extends GroupsAction
this.userIDType = userIDType; this.userIDType = userIDType;
} }
@SuppressWarnings("unchecked")
public Object run() public Object run()
throws Exception throws Exception
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment