summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java
new file mode 100644
index 00000000..b8b70a6b
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/java/80060-synchronized.java
@@ -0,0 +1,37 @@
+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();
+ }
+ }
+}