Show the definition of the cnt variable
authorJaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 10:04:36 +0200
changeset 2056ad6f4162691
parent 204 bd5089d23771
child 206 b1f279a7ec46
Show the definition of the cnt variable
samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java
     1.1 --- a/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java	Sat Jun 14 10:04:34 2008 +0200
     1.2 +++ b/samples/reentrant/src/org/apidesign/reentrant/CriticalSectionReentrant.java	Sat Jun 14 10:04:36 2008 +0200
     1.3 @@ -5,13 +5,13 @@
     1.4  
     1.5  public class CriticalSectionReentrant<T extends Comparable<T>> implements CriticalSection<T> {
     1.6      private T pilot;
     1.7 -    private AtomicInteger cnt = new AtomicInteger();
     1.8      
     1.9      public void assignPilot(T pilot) {
    1.10          this.pilot = pilot;
    1.11      }
    1.12  
    1.13      // BEGIN: reentrant.merge.int
    1.14 +    private AtomicInteger cnt = new AtomicInteger();
    1.15      public int sumBigger(Collection<T> args) {
    1.16          T pilotCopy = this.pilot;
    1.17          int own = doCriticalSection(args, pilotCopy);