Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-10-01 16:14:50 +0000
committerThomas Watson2008-10-01 16:14:50 +0000
commitbe5cb5ffadb37eca2cf7fd201fe0b397d580c9cb (patch)
tree4431d26ef1274a8b8f3880417e1a10bc0933c746
parent287b7fd901220ab49ef17f5c6af3b5680f358e01 (diff)
downloadrt.equinox.framework-be5cb5ffadb37eca2cf7fd201fe0b397d580c9cb.tar.gz
rt.equinox.framework-be5cb5ffadb37eca2cf7fd201fe0b397d580c9cb.tar.xz
rt.equinox.framework-be5cb5ffadb37eca2cf7fd201fe0b397d580c9cb.zip
Bug 249343 Compiler warnings for overriding synchronized method.
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.java2
-rw-r--r--bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/stats/ClassloaderStats.java2
-rw-r--r--bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/signedcontent/InvalidContentException.java2
-rw-r--r--bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFileInputStream.java4
4 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.java
index 4968454cd..8a09cd6fc 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.java
@@ -181,7 +181,7 @@ public class SystemBundleLoader extends BundleLoader {
/**
* Do nothing on a close.
*/
- protected void close() {
+ protected synchronized void close() {
// Do nothing.
}
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/stats/ClassloaderStats.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/stats/ClassloaderStats.java
index 60975e598..6bf59b5b7 100644
--- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/stats/ClassloaderStats.java
+++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/stats/ClassloaderStats.java
@@ -65,7 +65,7 @@ public class ClassloaderStats {
Properties filters = new Properties() {
private static final long serialVersionUID = 3546359543853365296L;
- public Object put(Object key, Object value) {
+ public synchronized Object put(Object key, Object value) {
addFilters((String) key, (String) value);
return null;
}
diff --git a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/signedcontent/InvalidContentException.java b/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/signedcontent/InvalidContentException.java
index 846c307df..1b38e8087 100644
--- a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/signedcontent/InvalidContentException.java
+++ b/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/signedcontent/InvalidContentException.java
@@ -53,7 +53,7 @@ public class InvalidContentException extends IOException {
* <code>IllegalStateException</code> since the cause of this
* exception can only be set when constructed.
*/
- public Throwable initCause(Throwable t) {
+ public synchronized Throwable initCause(Throwable t) {
throw new IllegalStateException();
}
}
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFileInputStream.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFileInputStream.java
index b7d6e1082..fc9059ba2 100644
--- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFileInputStream.java
+++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFileInputStream.java
@@ -195,7 +195,7 @@ public class ReliableFileInputStream extends FilterInputStream {
* Override default mark method.
* @see FilterInputStream#mark(int)
*/
- public void mark(int readlimit) {
+ public synchronized void mark(int readlimit) {
//ignore
}
@@ -203,7 +203,7 @@ public class ReliableFileInputStream extends FilterInputStream {
* Override default reset method.
* @see FilterInputStream#reset()
*/
- public void reset() throws IOException {
+ public synchronized void reset() throws IOException {
throw new IOException("reset not supported."); //$NON-NLS-1$
}
}

Back to the top