aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/SynchronizedExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website2/usageExamples/SynchronizedExample_post.jpage')
-rw-r--r--website2/usageExamples/SynchronizedExample_post.jpage23
1 files changed, 0 insertions, 23 deletions
diff --git a/website2/usageExamples/SynchronizedExample_post.jpage b/website2/usageExamples/SynchronizedExample_post.jpage
deleted file mode 100644
index 219ab88a..00000000
--- a/website2/usageExamples/SynchronizedExample_post.jpage
+++ /dev/null
@@ -1,23 +0,0 @@
-public class SynchronizedExample {
- private static final Object $LOCK = new Object[0];
- private final Object $lock = new Object[0];
- private final Object readLock = new Object();
-
- public static void hello() {
- synchronized($LOCK) {
- System.out.println("world");
- }
- }
-
- public int answerToLife() {
- synchronized($lock) {
- return 42;
- }
- }
-
- public void foo() {
- synchronized(readLock) {
- System.out.println("bar");
- }
- }
-}