1 /* 2 NoWhitespaceAfter 3 allowLineBreaks = (default)true 4 tokens = LITERAL_SYNCHRONIZED 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.whitespace.nowhitespaceafter; 10 11 class InputNoWhitespaceAfterTestSynchronized { 12 void method2() 13 { 14 synchronized(this) { 15 } 16 } 17 18 public void synchronized_() { 19 synchronized(this) {} 20 synchronized 21 (this) {} 22 synchronized (this) {} // violation 23 } 24 }