Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2004-04-21 22:08:32 +0000
committerThomas Watson2004-04-21 22:08:32 +0000
commit5a6306634606175e0f66cfc8422e94fa114a9355 (patch)
treeb1ab918c14c639108ab0a6848ece8b28adbdf84d
parent207a90f5832a0f2cede7a576d1c275e1c602ff26 (diff)
downloadrt.equinox.framework-5a6306634606175e0f66cfc8422e94fa114a9355.tar.gz
rt.equinox.framework-5a6306634606175e0f66cfc8422e94fa114a9355.tar.xz
rt.equinox.framework-5a6306634606175e0f66cfc8422e94fa114a9355.zip
fix javadoc
-rw-r--r--bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleEntry.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleEntry.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleEntry.java
index 556bf2aff..4e2336d0f 100644
--- a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleEntry.java
+++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/BundleEntry.java
@@ -87,6 +87,7 @@ public abstract class BundleEntry {
/**
* Constructs the BundleEntry using a ZipEntry.
+ * @param zipFile the ZipFile that this BundleEntry belongs to
* @param bundleFile BundleFile object this entry is a member of
* @param entry ZipEntry object of this entry
*/
@@ -103,7 +104,7 @@ public abstract class BundleEntry {
* @exception java.io.IOException
*/
public InputStream getInputStream() throws IOException {
- return (zipFile.getInputStream(zipEntry)); //TODO No secureAction call is made whereas one is made in FileBundleEntry
+ return (zipFile.getInputStream(zipEntry));
}
/**
@@ -137,7 +138,7 @@ public abstract class BundleEntry {
public URL getLocalURL() {
try {
- return new URL("jar:file:" + bundleFile.bundlefile.getAbsolutePath() + "!/" + zipEntry.getName());
+ return new URL("jar:file:" + bundleFile.bundlefile.getAbsolutePath() + "!/" + zipEntry.getName()); //$NON-NLS-1$//$NON-NLS-2$
} catch (MalformedURLException e) {
//This can not happen.
return null;
@@ -168,9 +169,9 @@ public abstract class BundleEntry {
private String name;
/**
- * Constructs the BundleEntry using a ZipEntry. //TODO Bogus comment
- * @param bundleFile BundleFile object this entry is a member of
- * @param entry ZipEntry object of this entry
+ * Constructs the BundleEntry using a File.
+ * @param file BundleFile object this entry is a member of
+ * @param name the name of this BundleEntry
*/
FileBundleEntry(File file, String name) {
this.file = file;
@@ -265,7 +266,7 @@ public abstract class BundleEntry {
public URL getLocalURL() {
try {
- return new URL("jar:file:" + bundleFile.bundlefile.getAbsolutePath() + "!/" + name);
+ return new URL("jar:file:" + bundleFile.bundlefile.getAbsolutePath() + "!/" + name); //$NON-NLS-1$ //$NON-NLS-2$
} catch (MalformedURLException e) {
//This can not happen, unless the jar protocol is not supported.
return null;

Back to the top