Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-10-06 22:14:00 +0000
committerThomas Watson2008-10-06 22:14:00 +0000
commit71006f19161d78f29ba5350b62736db0cc633198 (patch)
treea4f9788fec659690800fa6cedc0e3b90e546cf51
parentf74b3cb824c5b542486aa1e9d13e2846c931abf5 (diff)
downloadrt.equinox.framework-71006f19161d78f29ba5350b62736db0cc633198.tar.gz
rt.equinox.framework-71006f19161d78f29ba5350b62736db0cc633198.tar.xz
rt.equinox.framework-71006f19161d78f29ba5350b62736db0cc633198.zip
Bug 249343 Compiler warnings for overriding synchronized method.v20081006-1815
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/internal/loader/SystemBundleLoader.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
3 files changed, 4 insertions, 4 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 8a09cd6fc..4968454cd 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 synchronized void close() {
+ protected void close() {
// Do nothing.
}
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 1b38e8087..846c307df 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 synchronized Throwable initCause(Throwable t) {
+ public 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 fc9059ba2..b7d6e1082 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 synchronized void mark(int readlimit) {
+ public void mark(int readlimit) {
//ignore
}
@@ -203,7 +203,7 @@ public class ReliableFileInputStream extends FilterInputStream {
* Override default reset method.
* @see FilterInputStream#reset()
*/
- public synchronized void reset() throws IOException {
+ public void reset() throws IOException {
throw new IOException("reset not supported."); //$NON-NLS-1$
}
}

Back to the top