summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/FileProvider.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-06-23 17:09:52 +0200
committerArne Schwabe <arne@rfc2549.org>2013-06-23 17:09:52 +0200
commit0e76e955ba4848b18ee458cb9f53cc8e64671146 (patch)
tree818cb149d78d508dcc34fa6cdfc3e94e3655db4b /src/de/blinkt/openvpn/FileProvider.java
parent180642560ef5c8a0139dcd50c1a7fa949c0c20f4 (diff)
Fix issues found by Code Analysis
Diffstat (limited to 'src/de/blinkt/openvpn/FileProvider.java')
-rw-r--r--src/de/blinkt/openvpn/FileProvider.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/FileProvider.java b/src/de/blinkt/openvpn/FileProvider.java
index c5cadc12..671d6446 100644
--- a/src/de/blinkt/openvpn/FileProvider.java
+++ b/src/de/blinkt/openvpn/FileProvider.java
@@ -94,8 +94,7 @@ implements PipeDataWriter<InputStream> {
openPipeHelper(uri, null, null, is, this), 0,
dumpfile.length());
} catch (IOException e) {
- FileNotFoundException fnf = new FileNotFoundException("Unable to open minidump " + uri);
- throw fnf;
+ throw new FileNotFoundException("Unable to open minidump " + uri);
}
}
@@ -110,8 +109,7 @@ implements PipeDataWriter<InputStream> {
if (!path.matches("^[0-9a-z-.]*(dmp|dmp.log)$"))
throw new FileNotFoundException("url not in expect format " + uri);
File cachedir = getContext().getCacheDir();
- File dumpfile = new File(cachedir,path);
- return dumpfile;
+ return new File(cachedir,path);
}
@Override