package org.max.concurrent;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * foo
 * bar
 */
public class Main implements Runnable {
  private volatile int x = 0;
  // private AtomicInteger y = new AtomicInteger();

  public static void main(String[] args) throws InterruptedException {
    Main main = new Main();
    for (int i = 0; i < 2; ++i) {
      new Thread(main).start();
    }
    Thread.sleep(500);
    // System.out.println(main.y.get());
    System.out.println(main.x);
  }

  @Override
  public void run() {
    //
    //
    //
    //
    // System.out.println("in");
    for (int i = 0; i < 100000; i++) {
      // y.incrementAndGet();
      x++;
    }
    // System.out.println("out");
  }
}

@@ -87,15 +87,21 @@
  foo
+foo
 %0A * bar
+bar
 %0A */
@@ -222,16 +222,30 @@
 teger();
+%0A  // new line
 %0A%0A  publ
@@ -543,23 +543,29 @@
  run() %7B
-%0A 
    //
+ comment
 %0A    //%0A
@@ -735,10 +735,11 @@
 %22);%0A  %7D%0A
-
 %7D%0A
+%0A

update lines