diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 15:09:57 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:00 +0200 |
commit | 10dd7e74c551f3e252405ba0f80a2f143d9129e5 (patch) | |
tree | 1d0edc56a84a20c01248622cd8d8cb1dad0266ef /qadevOOo/runner/stats | |
parent | 6cab99d79c30eb9805a23fdd45168f6f4d8e94f3 (diff) |
Java5 update - convert Vector to ArrayList
Change-Id: I630b22da7fbfd2a1c821420d045146e5042c5c28
Diffstat (limited to 'qadevOOo/runner/stats')
-rw-r--r-- | qadevOOo/runner/stats/SQLExecution.java | 6 | ||||
-rw-r--r-- | qadevOOo/runner/stats/Summarizer.java | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/qadevOOo/runner/stats/SQLExecution.java b/qadevOOo/runner/stats/SQLExecution.java index ead90eb5eb6f..b817ce25af9b 100644 --- a/qadevOOo/runner/stats/SQLExecution.java +++ b/qadevOOo/runner/stats/SQLExecution.java @@ -22,10 +22,10 @@ import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.Statement; +import java.util.ArrayList; import java.util.Enumeration; import java.util.Hashtable; import java.util.StringTokenizer; -import java.util.Vector; /** * @@ -148,7 +148,7 @@ public class SQLExecution { return false; } } - Vector sqlCommand = new Vector(); + ArrayList sqlCommand = new ArrayList(); sqlCommand.add(""); boolean update = false; // synchronize all "$varname" occurrences in the command string with @@ -273,7 +273,7 @@ public class SQLExecution { for(int i=1; i<=columnCount; i++) { columnNames[i-1] = sqlRSMeta.getColumnName(i); // initialize output - Vector v = new Vector(); + ArrayList v = new ArrayList(); sqlResult.beforeFirst(); while (sqlResult.next()) { diff --git a/qadevOOo/runner/stats/Summarizer.java b/qadevOOo/runner/stats/Summarizer.java index ad9d279a913f..3d9afbc10ad8 100644 --- a/qadevOOo/runner/stats/Summarizer.java +++ b/qadevOOo/runner/stats/Summarizer.java @@ -17,7 +17,8 @@ */ package stats; -import java.util.Vector; +import java.util.ArrayList; + import share.DescEntry; /** @@ -41,8 +42,8 @@ public class Summarizer } int count = entry.SubEntryCount; int knownIssues = 0; - Vector failures = new Vector(); - Vector states = new Vector(); + ArrayList failures = new ArrayList(); + ArrayList states = new ArrayList(); for (int i = 0; i < count; i++) { if (entry.SubEntries[i].State == null) @@ -67,14 +68,14 @@ public class Summarizer String state = "PASSED.FAILED"; for (int j = 0; j < failures.size(); j++) { - if (states.elementAt(j).equals("not part of the job")) + if (states.get(j).equals("not part of the job")) { state = "PASSED(some interfaces/services not tested).OK"; } else { errMsg += - failures.elementAt(j) + " - " + states.elementAt(j) + "\r\n"; + failures.get(j) + " - " + states.get(j) + "\r\n"; } } entry.hasErrorMsg = true; |