Java5 update - use generics where it makes sense

Change-Id: I3e60bd33127105c1d9da1bb25cea16355850d3fd
This commit is contained in:
Noel Grandin
2012-06-28 15:19:57 +02:00
committed by Michael Stahl
parent 3fba4e261f
commit cde7ccee85
12 changed files with 86 additions and 110 deletions

View File

@ -94,7 +94,7 @@ public class CheckAPI {
// get the parameters for the internal test
String paramList = (String)param.get("ParamList");
ArrayList p = new ArrayList();
ArrayList<Object> p = new ArrayList<Object>();
StringTokenizer paramTokens = new StringTokenizer(paramList, " ");
while(paramTokens.hasMoreTokens())
{
@ -118,12 +118,12 @@ public class CheckAPI {
if ( param.get("job1")==null )
{
// get all test jobs from runner service
XPropertyAccess xPropAcc = (XPropertyAccess)UnoRuntime.queryInterface(XPropertyAccess.class, oObj);
XPropertyAccess xPropAcc = UnoRuntime.queryInterface(XPropertyAccess.class, oObj);
props = xPropAcc.getPropertyValues();
}
else {
int index=1;
p = new ArrayList();
p = new ArrayList<Object>();
while ( param.get("job"+index) != null ) {
p.add(param.get("job"+index));
index++;