package com.puppycrawl.tools.checkstyle.checks.blocks.leftcurly;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.util.ArrayList;
import java.util.List;
class InputLeftCurlyLineBreakAfter
{
/** @see test method **/
int foo() throws InterruptedException
{
int x = 1;
int a = 2;
while (true)
{
try
{
if (x > 0)
{
break;
}
else if (x < 0) {
;
}
else { break; }
switch (a)
{
case 0:
break;
default:
break;
}
}
catch (Exception e) { break; }
finally { break; }
}
synchronized (this) { do { x = 2; } while (x == 2); }
synchronized (this) {
do {} while (x == 2);
}
for (int k = 0; k < 1; k++) { String innerBlockVariable = ""; }
for (int k = 0; k < 1; k++) {}
return a;
}
static { int x = 1; }
void method2()
{
boolean flag = false;
if (flag) { String.valueOf("foo"); }
}
}
class Absent_CustomFieldSerializer1 {
public static void serialize() {}
}
class Absent_CustomFieldSerializer2
{
public Absent_CustomFieldSerializer2() {}
}
class EmptyClass1 {}
interface EmptyInterface1 {}
enum KnownOrder { KNOWN_ORDER, UNKNOWN_ORDER }