Proper Java serialization support for LocalAddress
This commit is contained in:
parent
a4c491498b
commit
73e8954239
@ -101,4 +101,9 @@ public final class LocalAddress extends SocketAddress implements Comparable<Loca
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return getId();
|
return getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Just in case someone serializes this class ..
|
||||||
|
private Object readResolve() {
|
||||||
|
return getInstance(getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user