////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle;

/**
 * Test case for correct use of braces.
 * @author Oliver Burn
 **/
class InputLeftCurlyOther
{
    /** @see test method **/
    void 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);
        }

        this.wait(666
                 ); // Bizarre, but legal

        for (int k = 0; k < 1; k++)
        {
            String innerBlockVariable = "";
        }

    }

    // Test static initialiser
    static
    {
        int x = 1; // should not require any javadoc
    }
}

@@ -385,12 +385,11 @@
     
-void
+int
  foo
@@ -1410,24 +1410,179 @@
 %0A        %7D%0A%0A
+        // test input for bug reported by Joe Comuzzi%0A        if (System.currentMillis() %3E 1000)%0A            return 1;%0A        else%0A            return 2;%0A%0A
     %7D%0A%0A    /

test input for rcurly bug reported by Joe Comuzzi