axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r469071 - /webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java
Date Mon, 30 Oct 2006 05:10:19 GMT
Author: deepal
Date: Sun Oct 29 21:10:18 2006
New Revision: 469071

URL: http://svn.apache.org/viewvc?view=rev&rev=469071
Log:
fixing a problem when returning a book

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java

Modified: webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java?view=diff&rev=469071&r1=469070&r2=469071
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/sample/servicelifecycle/LibraryService.java
Sun Oct 29 21:10:18 2006
@@ -50,7 +50,6 @@
         return lendBookList.getBookList();
     }
 
-
     public Book lendBook(String isbn, String userName) throws AxisFault {
         if (isLooged(userName)) {
             Book book = availableBookList.getBook(isbn);
@@ -70,8 +69,9 @@
     }
 
     public void returnBook(Book book) {
-        availableBookList.addBook(book);
-        lendBookList.removeBook(book);
+        Book tempBook =allBookList.getBook(book.getIsbn());
+        availableBookList.addBook(tempBook);
+        lendBookList.removeBook(tempBook);
     }
 
     private boolean isLooged(String userName) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message