summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/share
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 15:40:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commitb65017a2a7af290f6681da7b197a52efe83d5185 (patch)
tree06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/runner/share
parent33ec740d1438c3dddf8e1974757ed05bb76425ca (diff)
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/runner/share')
-rw-r--r--qadevOOo/runner/share/CwsDataExchange.java2
-rw-r--r--qadevOOo/runner/share/DescGetter.java10
2 files changed, 6 insertions, 6 deletions
diff --git a/qadevOOo/runner/share/CwsDataExchange.java b/qadevOOo/runner/share/CwsDataExchange.java
index 6593cedef6f3..3b160a179a24 100644
--- a/qadevOOo/runner/share/CwsDataExchange.java
+++ b/qadevOOo/runner/share/CwsDataExchange.java
@@ -30,7 +30,7 @@ public interface CwsDataExchange {
* Retunrs all module names which are added to the specified childworkspace
* @return a String array of all added modules
*/
- public ArrayList getModules();
+ public ArrayList<String> getModules();
/**
* Set the test status of cws related UnoAPI tests to the EIS dabase
diff --git a/qadevOOo/runner/share/DescGetter.java b/qadevOOo/runner/share/DescGetter.java
index 7ab8b2de044f..22d8b62199a0 100644
--- a/qadevOOo/runner/share/DescGetter.java
+++ b/qadevOOo/runner/share/DescGetter.java
@@ -46,7 +46,7 @@ public abstract class DescGetter
protected DescEntry[] getScenario(String url, String descPath,
boolean debug)
{
- ArrayList entryList = new ArrayList();
+ ArrayList<DescEntry> entryList = new ArrayList<DescEntry>();
String line = "";
BufferedReader scenario = null;
DescEntry[] entries = null;
@@ -78,7 +78,7 @@ public abstract class DescGetter
}
else
{
- ArrayList subs = getSubInterfaces(job);
+ ArrayList<String> subs = getSubInterfaces(job);
String partjob = job.substring(0, job.indexOf(",")).trim();
aEntry = getDescriptionForSingleJob(partjob, descPath,
debug);
@@ -163,14 +163,14 @@ public abstract class DescGetter
return null;
}
entries = new DescEntry[entryList.size()];
- entries = (DescEntry[]) entryList.toArray(entries);
+ entries = entryList.toArray(entries);
return entries;
}
- protected ArrayList getSubInterfaces(String job)
+ protected ArrayList<String> getSubInterfaces(String job)
{
- ArrayList namesList = new ArrayList();
+ ArrayList<String> namesList = new ArrayList<String>();
StringTokenizer st = new StringTokenizer(job, ",");
for (int i = 0; st.hasMoreTokens(); i++)