Skip to content

Commit eab7520

Browse files
committed
issue 22
1 parent 1594188 commit eab7520

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎koans/src/intermediate/AboutSerialization.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ class Boat implements Serializable {
9898

9999
@Koan
100100
public void customSerializationWithUnserializableFields() throws FileNotFoundException, IOException {
101-
Boat car = new Boat();
102-
car.engine = new Engine("diesel");
101+
Boat boat = new Boat();
102+
boat.engine = new Engine("diesel");
103103
ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream("SerializeFile"));
104104
String marker = "Start ";
105105
try {
106-
os.writeObject(car);
106+
os.writeObject(boat);
107107
} catch(NotSerializableException e) {
108108
marker += "Exception";
109109
}

0 commit comments

Comments
 (0)