am fec26c50: am f3ab069b: Make copy-constructor make deep copy.

* commit 'fec26c50974443f25715dd6dc64e81f1ea7b496c':
  Make copy-constructor make deep copy.
This commit is contained in:
Robert Greenwalt
2011-07-29 09:24:38 -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());
} }