equal
deleted
inserted
replaced
130 // IllegalArgumentException("Invalid listener ID: null"); |
130 // IllegalArgumentException("Invalid listener ID: null"); |
131 // return id.intValue(); |
131 // return id.intValue(); |
132 // } |
132 // } |
133 |
133 |
134 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { |
134 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { |
135 ObjectInputStream.GetField gf = ois.readFields(); |
135 ois.defaultReadObject(); |
136 Notification notification = (Notification)gf.get("notif", null); |
|
137 Integer listenerId = (Integer)gf.get("id", null); |
|
138 try { |
136 try { |
139 validate(notification, listenerId); |
137 validate(this.notif, this.id); |
140 this.notif = notification; |
|
141 this.id = listenerId; |
|
142 } catch (IllegalArgumentException e) { |
138 } catch (IllegalArgumentException e) { |
143 throw new InvalidObjectException(e.getMessage()); |
139 throw new InvalidObjectException(e.getMessage()); |
144 } |
140 } |
145 } |
141 } |
146 |
142 |