Latest bnd code
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1350613 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/lib/osgi/URLResource.java b/bundleplugin/src/main/java/aQute/lib/osgi/URLResource.java
index 6e96f23..7c4772f 100755
--- a/bundleplugin/src/main/java/aQute/lib/osgi/URLResource.java
+++ b/bundleplugin/src/main/java/aQute/lib/osgi/URLResource.java
@@ -45,7 +45,7 @@
try {
if (url.getProtocol().equals("file:")) {
File file = new File(url.getPath());
- if ( file.isFile())
+ if (file.isFile())
return size = file.length();
} else {
URLConnection con = url.openConnection();
@@ -59,7 +59,8 @@
}
}
}
- } catch (Exception e) {
+ }
+ catch (Exception e) {
// Forget this exception, we do it the hard way
}
InputStream in = openInputStream();
@@ -67,11 +68,12 @@
try {
din = new DataInputStream(in);
long result = din.skipBytes(Integer.MAX_VALUE);
- while( in.read() >= 0) {
+ while (in.read() >= 0) {
result += din.skipBytes(Integer.MAX_VALUE);
}
size = result;
- } finally {
+ }
+ finally {
if (din != null) {
din.close();
}