diff options
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/base/java_fat.java | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/qadevOOo/runner/base/java_fat.java b/qadevOOo/runner/base/java_fat.java index 1b95f28ff582..031474fddd21 100644 --- a/qadevOOo/runner/base/java_fat.java +++ b/qadevOOo/runner/base/java_fat.java @@ -511,40 +511,39 @@ public class java_fat implements TestBase return entryList; } - while (line != null) + try { - try + while (line != null) { - if (!line.startsWith("#") && (line.length() > 1)) + try { - entryList.add(line.trim()); - } + if (!line.startsWith("#") && (line.length() > 1)) + { + entryList.add(line.trim()); + } - line = exclusion.readLine(); - } - catch (java.io.IOException ioe) - { - if (debug) - { - System.out.println("Exception while reading exclusion list"); + line = exclusion.readLine(); } + catch (java.io.IOException ioe) + { + if (debug) + { + System.out.println("Exception while reading exclusion list"); + } - return entryList; + return entryList; + } } } - - try - { - exclusion.close(); - } - catch (java.io.IOException ioe) + finally { - if (debug) + try + { + exclusion.close(); + } + catch (java.io.IOException ioe) { - System.out.println("Couldn't close file " + url); } - - return entryList; } return entryList; |