summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats/Summarizer.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-27 11:04:16 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-27 11:04:16 +0000
commit7c62b7c4ba242cf027a36f2a504e63024093b387 (patch)
tree77cc23dd05b473df31eb9fa700416f25edd7bf6a /qadevOOo/runner/stats/Summarizer.java
parent4b2c03843e0e559d1c849f4f201f53072be7fe14 (diff)
INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED
2003/05/21 10:48:31 sg 1.1.8.1: #109819# prepare devide of runner
Diffstat (limited to 'qadevOOo/runner/stats/Summarizer.java')
-rw-r--r--qadevOOo/runner/stats/Summarizer.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/qadevOOo/runner/stats/Summarizer.java b/qadevOOo/runner/stats/Summarizer.java
index 2ebbcd8b2672..ed97f8de1fb6 100644
--- a/qadevOOo/runner/stats/Summarizer.java
+++ b/qadevOOo/runner/stats/Summarizer.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Summarizer.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 16:26:47 $
+ * last change:$Date: 2003-05-27 12:04:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,7 +75,6 @@ public class Summarizer {
*
* gets the state for a SuperEntry according to its subentries
*/
-
public void summarizeUp(DescEntry entry) {
if ( ( entry.State != null ) && entry.State != "UNKNOWN") return;
int count = entry.SubEntryCount;
@@ -107,12 +106,10 @@ public class Summarizer {
}
public static void summarizeDown(DescEntry entry, String state) {
- entry.State = state;
+ if ( ( entry.State == null ) || entry.State == "UNKNOWN")
+ entry.State = state;
for (int i=0; i<entry.SubEntryCount; i++) {
- entry.SubEntries[i].State = state;
- for (int j=0;j<entry.SubEntries[i].SubEntryCount;j++) {
- summarizeDown(entry.SubEntries[i].SubEntries[j],state);
- }
+ summarizeDown(entry.SubEntries[i], entry.State);
}
}