summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java
new file mode 100644
index 00000000..73fc9b1d
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/java/80061-synchronized.java
@@ -0,0 +1,29 @@
+public class A {
+ private synchronized static void g(){
+ int x=1;
+ }
+ synchronized A f(){
+ return null;
+ }
+ public void foo(){
+ g(); synchronized(this)
+ {
+ g();
+ }
+ g(); synchronized(this)
+ {
+ synchronized(this)
+ {
+ synchronized(this)
+ {
+ g();
+ }
+ }
+ g();
+ }
+ synchronized(this)
+ {
+ g();
+ }
+ }
+}