diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 15:40:17 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | b65017a2a7af290f6681da7b197a52efe83d5185 (patch) | |
tree | 06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/runner/share/DescGetter.java | |
parent | 33ec740d1438c3dddf8e1974757ed05bb76425ca (diff) |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/runner/share/DescGetter.java')
-rw-r--r-- | qadevOOo/runner/share/DescGetter.java | 10 |
1 files changed, 5 insertions, 5 deletions
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++) |