Don't return an unmod collection.
It's not needed as people can mess with this, and people do, so this fixes the build.
bug:8398355
Change-Id: Iddd00af41009c88b67fb7f9a8789bb416c377922
diff --git a/core/java/android/net/LinkProperties.java b/core/java/android/net/LinkProperties.java
index 833549f..7044d39 100644
--- a/core/java/android/net/LinkProperties.java
+++ b/core/java/android/net/LinkProperties.java
@@ -197,7 +197,7 @@
for (LinkProperties stacked: mStackedLinks.values()) {
routes.addAll(stacked.getAllRoutes());
}
- return Collections.unmodifiableCollection(routes);
+ return routes;
}
public void setHttpProxy(ProxyProperties proxy) {