am f3ab069b: Make copy-constructor make deep copy.

* commit 'f3ab069bec358f8138fed5ceabe64e303ac7d8f9':
  Make copy-constructor make deep copy.
This commit is contained in:
Robert Greenwalt
2011-07-29 09:20:51 -07:00
committed by Android Git Automerger

View File

@@ -80,9 +80,9 @@ public class LinkProperties implements Parcelable {
public LinkProperties(LinkProperties source) { public LinkProperties(LinkProperties source) {
if (source != null) { if (source != null) {
mIfaceName = source.getInterfaceName(); mIfaceName = source.getInterfaceName();
mLinkAddresses = source.getLinkAddresses(); for (LinkAddress l : source.getLinkAddresses()) mLinkAddresses.add(l);
mDnses = source.getDnses(); for (InetAddress i : source.getDnses()) mDnses.add(i);
mRoutes = source.getRoutes(); for (RouteInfo r : source.getRoutes()) mRoutes.add(r);
mHttpProxy = (source.getHttpProxy() == null) ? mHttpProxy = (source.getHttpProxy() == null) ?
null : new ProxyProperties(source.getHttpProxy()); null : new ProxyProperties(source.getHttpProxy());
} }