diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
commit | abada90e3f84dc703b8ddc9efcbed8a946fadead (patch) | |
tree | 2c6f9dccd510ea97cb927a7bd635422efaae547a /java/demo/Freeze/library/BookI.java | |
parent | removing trace message (diff) | |
download | ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2 ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip |
Expanded tabs into spaces
Diffstat (limited to 'java/demo/Freeze/library/BookI.java')
-rw-r--r-- | java/demo/Freeze/library/BookI.java | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/java/demo/Freeze/library/BookI.java b/java/demo/Freeze/library/BookI.java index e7c51f7bdb2..74188b27b1f 100644 --- a/java/demo/Freeze/library/BookI.java +++ b/java/demo/Freeze/library/BookI.java @@ -24,63 +24,63 @@ class BookI extends Book throw new Ice.ObjectNotExistException(); } - // - // Immutable. - // - return description; + // + // Immutable. + // + return description; } synchronized public String getRenterName(Ice.Current current) - throws BookNotRentedException + throws BookNotRentedException { if(_destroyed) { throw new Ice.ObjectNotExistException(); } - if(rentalCustomerName.length() == 0) - { - throw new BookNotRentedException(); - } - return rentalCustomerName; + if(rentalCustomerName.length() == 0) + { + throw new BookNotRentedException(); + } + return rentalCustomerName; } synchronized public void rentBook(String name, Ice.Current current) - throws BookRentedException + throws BookRentedException { if(_destroyed) { throw new Ice.ObjectNotExistException(); } - if(rentalCustomerName.length() != 0) - { - throw new BookRentedException(); - } - rentalCustomerName = name; + if(rentalCustomerName.length() != 0) + { + throw new BookRentedException(); + } + rentalCustomerName = name; } synchronized public void returnBook(Ice.Current current) - throws BookNotRentedException + throws BookNotRentedException { if(_destroyed) { throw new Ice.ObjectNotExistException(); } - if(rentalCustomerName.length() == 0) - { - throw new BookNotRentedException(); - } - rentalCustomerName = new String();; + if(rentalCustomerName.length() == 0) + { + throw new BookNotRentedException(); + } + rentalCustomerName = new String();; } synchronized public void destroy(Ice.Current current) - throws DatabaseException + throws DatabaseException { if(_destroyed) { @@ -89,29 +89,29 @@ class BookI extends Book _destroyed = true; - try - { - _library.remove(description); - } - catch(Freeze.DatabaseException ex) - { - DatabaseException e = new DatabaseException(); - e.message = ex.message; - throw e; - } + try + { + _library.remove(description); + } + catch(Freeze.DatabaseException ex) + { + DatabaseException e = new DatabaseException(); + e.message = ex.message; + throw e; + } } BookI(LibraryI library) { - _library = library; + _library = library; _destroyed = false; - // - // This could be avoided by having two constructors (one for - // new creation of a book, and the other for restoring a - // previously saved book). - // - rentalCustomerName = new String(); + // + // This could be avoided by having two constructors (one for + // new creation of a book, and the other for restoring a + // previously saved book). + // + rentalCustomerName = new String(); } private LibraryI _library; |