diff options
Diffstat (limited to 'bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java')
-rw-r--r-- | bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java index 572730ddd..a1c4d5b5b 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java +++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/internal/location/Locker_JavaIo.java @@ -26,6 +26,7 @@ public class Locker_JavaIo implements Locker { this.lockFile = lockFile; } + @Override public synchronized boolean lock() throws IOException { //if the lock file already exists, try to delete, //assume failure means another eclipse has it open @@ -47,6 +48,7 @@ public class Locker_JavaIo implements Locker { return true; } + @Override public synchronized void release() { try { if (lockRAF != null) { @@ -60,6 +62,7 @@ public class Locker_JavaIo implements Locker { lockFile.delete(); } + @Override public synchronized boolean isLocked() throws IOException { if (lockRAF != null) return true; |