[webbeans-commits] Webbeans SVN: r789 - examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Tue Jan 6 12:59:42 EST 2009


Author: pete.muir at jboss.org
Date: 2009-01-06 12:59:41 -0500 (Tue, 06 Jan 2009)
New Revision: 789

Modified:
   examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
Log:
WBRI-94

Modified: examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
===================================================================
--- examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java	2009-01-06 17:44:42 UTC (rev 788)
+++ examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java	2009-01-06 17:59:41 UTC (rev 789)
@@ -22,7 +22,9 @@
    private int smallest;
    
    @MaxNumber
-   private transient int biggest;
+   private transient int maxNumber;
+   
+   private int biggest;
    private int remainingGuesses;
    
    @Current Manager manager;
@@ -85,6 +87,7 @@
       this.smallest = 0;
       this.guess = 0;
       this.remainingGuesses = 10;
+      this.biggest = maxNumber;
       this.number = manager.getInstanceByType(Integer.class, new AnnotationLiteral<Random>(){});
    }
    




More information about the weld-commits mailing list