Skip to content

Commit

Permalink
issue 22
Browse files Browse the repository at this point in the history
  • Loading branch information
matyb committed Nov 14, 2011
1 parent 1594188 commit eab7520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions koans/src/intermediate/AboutSerialization.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ class Boat implements Serializable {

@Koan
public void customSerializationWithUnserializableFields() throws FileNotFoundException, IOException {
Boat car = new Boat();
car.engine = new Engine("diesel");
Boat boat = new Boat();
boat.engine = new Engine("diesel");
ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream("SerializeFile"));
String marker = "Start ";
try {
os.writeObject(car);
os.writeObject(boat);
} catch(NotSerializableException e) {
marker += "Exception";
}
Expand Down

0 comments on commit eab7520

Please sign in to comment.