1   package org.apache.commons.javaflow.bytecode.transformation.rewrite;
2   
3   import org.apache.commons.javaflow.Continuation;
4   
5   public final class Simple implements Runnable {
6   
7       public int g = -1; // global count throughout all continuations
8       public int l = -1; // local count mapped to a global variable so
9                          // we can access is
10      
11      public void run() {
12          int local = -1;
13          ++g; l=++local;
14          Continuation.suspend();
15          ++g; l=++local;
16          Continuation.suspend();
17          ++g; l=++local;
18          Continuation.suspend();
19          ++g; l=++local;
20      }
21  
22  }