Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-08 19:17:38 +0000
committerThomas Watson2019-05-16 14:07:43 +0000
commit3b63527921acfe7c78cce6b84ab8e869ef17f230 (patch)
treed92a825232ce414f139b4ec862e628b1b57c35ca /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
parent06d5ba9879305c04d1d7e5076d67a38af2ef3a66 (diff)
downloadrt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.tar.gz
rt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.tar.xz
rt.equinox.framework-3b63527921acfe7c78cce6b84ab8e869ef17f230.zip
Change-Id: I4ef764e744192dc3564ad053e8984e891aadfe44 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
index ddea8b6f5..9f30acd13 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
@@ -555,6 +555,7 @@ public class Storage {
/**
* @throws IOException
*/
+ @Override
public void connect() throws IOException {
connected = true;
}
@@ -562,6 +563,7 @@ public class Storage {
/**
* @throws IOException
*/
+ @Override
public InputStream getInputStream() throws IOException {
return (in);
}
@@ -580,6 +582,7 @@ public class Storage {
if (System.getSecurityManager() == null)
return getUpdateLocation0(module);
return AccessController.doPrivileged(new PrivilegedAction<String>() {
+ @Override
public String run() {
return getUpdateLocation0(module);
}
@@ -922,6 +925,7 @@ public class Storage {
return getContentFile0(staged, isReference, bundleID, generationID);
try {
return AccessController.doPrivileged(new PrivilegedExceptionAction<File>() {
+ @Override
public File run() throws BundleException {
return getContentFile0(staged, isReference, bundleID, generationID);
}
@@ -1030,6 +1034,7 @@ public class Storage {
return stageContent0(in, sourceURL);
try {
return AccessController.doPrivileged(new PrivilegedExceptionAction<File>() {
+ @Override
public File run() throws BundleException {
return stageContent0(in, sourceURL);
}
@@ -1186,6 +1191,7 @@ public class Storage {
} else {
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
+ @Override
public Void run() throws IOException {
delete0(delete);
return null;
@@ -1216,6 +1222,7 @@ public class Storage {
} else {
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
+ @Override
public Void run() throws IOException {
save0();
return null;
@@ -1859,6 +1866,7 @@ public class Storage {
private int curDataIndex = 0;
private URL nextElement = null;
+ @Override
public boolean hasMoreElements() {
if (nextElement != null)
return true;
@@ -1866,6 +1874,7 @@ public class Storage {
return nextElement != null;
}
+ @Override
public URL nextElement() {
if (!hasMoreElements())
throw new NoSuchElementException();

Back to the top