[jboss-cvs] jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam ...

Gavin King gavin.king at jboss.com
Mon Nov 20 22:20:31 EST 2006


  User: gavin   
  Date: 06/11/20 22:20:31

  Modified:    examples/dvdstore/src/com/jboss/dvd/seam     Category.java
                        Customer.java Order.java ShipAction.java
  Log:
  eliminate warnings
  
  Revision  Changes    Path
  1.7       +3 -1      jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Category.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Category.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Category.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- Category.java	11 Jan 2006 08:33:02 -0000	1.6
  +++ Category.java	21 Nov 2006 03:20:31 -0000	1.7
  @@ -43,6 +43,7 @@
           this.name = name;
       }
   
  +    @Override
       public boolean equals(Object other) {
           if (other == null || !(other instanceof Category)) {
               return false;
  @@ -52,7 +53,8 @@
           return (getCategoryId() == otherCategory.getCategoryId());
       }
   
  -    public int hashcode() {
  +    @Override
  +    public int hashCode() {
           return 37*getCategoryId() + 97;
       }
   
  
  
  
  1.13      +1 -0      jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Customer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Customer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Customer.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- Customer.java	10 May 2006 17:45:46 -0000	1.12
  +++ Customer.java	21 Nov 2006 03:20:31 -0000	1.13
  @@ -152,6 +152,7 @@
           return "" + ccMonth + "/" + ccYear;
       }
   
  +    @Override
       public String toString() {
           return "Customer#" + getId() + "(" + userName + ")";
       }
  
  
  
  1.15      +1 -1      jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Order.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Order.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Order.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- Order.java	31 May 2006 21:00:18 -0000	1.14
  +++ Order.java	21 Nov 2006 03:20:31 -0000	1.15
  @@ -27,7 +27,7 @@
   public class Order
       implements Serializable
   {
  -    public enum Status {OPEN,CANCELLED,PROCESSING,SHIPPED};
  +    public enum Status {OPEN,CANCELLED,PROCESSING,SHIPPED}
   
       long orderId;
       Date orderDate;
  
  
  
  1.13      +1 -1      jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShipAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ShipAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShipAction.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- ShipAction.java	30 Jun 2006 21:08:27 -0000	1.12
  +++ ShipAction.java	21 Nov 2006 03:20:31 -0000	1.13
  @@ -51,7 +51,7 @@
   
       @BeginTask
       public String viewTask() {
  -        order = (Order) em.find(Order.class, orderId);
  +        order = em.find(Order.class, orderId);
           return "ship";
       }
       
  
  
  



More information about the jboss-cvs-commits mailing list