[seam-commits] Seam SVN: r8033 - trunk/examples/spring/src/org/jboss/seam/example/spring.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 28 05:40:20 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-04-28 05:40:19 -0400 (Mon, 28 Apr 2008)
New Revision: 8033

Modified:
   trunk/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
   trunk/examples/spring/src/org/jboss/seam/example/spring/BookingService.java
   trunk/examples/spring/src/org/jboss/seam/example/spring/HotelBookingAction.java
   trunk/examples/spring/src/org/jboss/seam/example/spring/LoginAction.java
   trunk/examples/spring/src/org/jboss/seam/example/spring/RegisterAction.java
Log:
Fix warnings

Modified: trunk/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
===================================================================
--- trunk/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-04-27 04:18:50 UTC (rev 8032)
+++ trunk/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-04-28 09:40:19 UTC (rev 8033)
@@ -30,6 +30,7 @@
     @In
     private User user;
 
+    @SuppressWarnings("unused")
     @DataModel
     private List<Booking> bookings;
     @DataModelSelection

Modified: trunk/examples/spring/src/org/jboss/seam/example/spring/BookingService.java
===================================================================
--- trunk/examples/spring/src/org/jboss/seam/example/spring/BookingService.java	2008-04-27 04:18:50 UTC (rev 8032)
+++ trunk/examples/spring/src/org/jboss/seam/example/spring/BookingService.java	2008-04-28 09:40:19 UTC (rev 8033)
@@ -7,7 +7,6 @@
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceException;
 
-import org.jboss.seam.Component;
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.annotations.async.Asynchronous;
 import org.jboss.seam.core.Expressions;

Modified: trunk/examples/spring/src/org/jboss/seam/example/spring/HotelBookingAction.java
===================================================================
--- trunk/examples/spring/src/org/jboss/seam/example/spring/HotelBookingAction.java	2008-04-27 04:18:50 UTC (rev 8032)
+++ trunk/examples/spring/src/org/jboss/seam/example/spring/HotelBookingAction.java	2008-04-28 09:40:19 UTC (rev 8033)
@@ -4,7 +4,6 @@
 import java.util.Calendar;
 import javax.faces.application.FacesMessage;
 
-import org.jboss.seam.Component;
 import org.jboss.seam.annotations.Begin;
 import org.jboss.seam.annotations.End;
 import org.jboss.seam.annotations.In;

Modified: trunk/examples/spring/src/org/jboss/seam/example/spring/LoginAction.java
===================================================================
--- trunk/examples/spring/src/org/jboss/seam/example/spring/LoginAction.java	2008-04-27 04:18:50 UTC (rev 8032)
+++ trunk/examples/spring/src/org/jboss/seam/example/spring/LoginAction.java	2008-04-28 09:40:19 UTC (rev 8033)
@@ -4,13 +4,13 @@
 import java.io.Serializable;
 
 import org.jboss.seam.ScopeType;
-import org.jboss.seam.Seam;
 import org.jboss.seam.annotations.In;
 import org.jboss.seam.annotations.Name;
 import org.jboss.seam.annotations.Out;
 import org.jboss.seam.annotations.Scope;
 import org.jboss.seam.annotations.Synchronized;
 import org.jboss.seam.faces.FacesMessages;
+import org.jboss.seam.web.Session;
 
 @Scope(ScopeType.SESSION)
 @Synchronized
@@ -44,7 +44,7 @@
 
 	public void logout() {
 		loggedIn = false;
-		Seam.invalidateSession();
+		Session.instance().invalidate();
 	}
 
 	public void validateLogin() {

Modified: trunk/examples/spring/src/org/jboss/seam/example/spring/RegisterAction.java
===================================================================
--- trunk/examples/spring/src/org/jboss/seam/example/spring/RegisterAction.java	2008-04-27 04:18:50 UTC (rev 8032)
+++ trunk/examples/spring/src/org/jboss/seam/example/spring/RegisterAction.java	2008-04-28 09:40:19 UTC (rev 8033)
@@ -21,6 +21,7 @@
     @In("#{hibernateTestService}")
     private HibernateTestService hibernateTestService;
 
+    @SuppressWarnings("unused")
     @In("hotelSearch")
     private HotelSearchingAction hotelSearchingAction;
 




More information about the seam-commits mailing list