Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2004-12-17 13:57:07 +0000
committerKai Maetzel2004-12-17 13:57:07 +0000
commit82511c52b429dad13cb1992c471dd079d33597c9 (patch)
treebf6b04d52c7aa95113df7f71968bc7a2a6ff3e42 /org.eclipse.core.filebuffers.tests/src
parentde8d12f40db5bcc4b1532924eff8ecb704633342 (diff)
downloadeclipse.platform.text-82511c52b429dad13cb1992c471dd079d33597c9.tar.gz
eclipse.platform.text-82511c52b429dad13cb1992c471dd079d33597c9.tar.xz
eclipse.platform.text-82511c52b429dad13cb1992c471dd079d33597c9.zip
expose IOExceptions in test
Diffstat (limited to 'org.eclipse.core.filebuffers.tests/src')
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java16
1 files changed, 4 insertions, 12 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
index cad283faf..bb92a26a4 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
@@ -129,18 +129,10 @@ public class FileTool {
os = new FileOutputStream(destination);
transferData(is, os);
} finally {
- if(os != null){
- try {
- os.close();
- } catch(IOException e){
- }
- }
- if(is != null){
- try {
- is.close();
- } catch(IOException e){
- }
- }
+ if(os != null)
+ os.close();
+ if(is != null)
+ is.close();
}
}

Back to the top