

package com.google.testing.threadtester;

/**
 * Simple test class called by SimpleClass.
 *
 * @author alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
 */
public class SimpleClass2 {

  volatile int position = 0;

  public int setPosition(SimpleClass owner, int value) {
    owner.position = value;
    return value;
  }

  public int getValue() {
    position = 1;
    position = 2;
    return 42;
  }

  public int getArbitraryValue() {
    return -1;
  }
}
