OSDN Git Service

Don't return an unmod collection.
authorRobert Greenwalt <rgreenwalt@google.com>
Fri, 15 Mar 2013 18:28:50 +0000 (11:28 -0700)
committerRobert Greenwalt <rgreenwalt@google.com>
Fri, 15 Mar 2013 18:28:50 +0000 (11:28 -0700)
It's not needed as people can mess with this, and people do, so this fixes the build.
bug:8398355

Change-Id: Iddd00af41009c88b67fb7f9a8789bb416c377922

core/java/android/net/LinkProperties.java

index 833549f..7044d39 100644 (file)
@@ -197,7 +197,7 @@ public class LinkProperties implements Parcelable {
         for (LinkProperties stacked: mStackedLinks.values()) {
             routes.addAll(stacked.getAllRoutes());
         }
-        return Collections.unmodifiableCollection(routes);
+        return routes;
     }
 
     public void setHttpProxy(ProxyProperties proxy) {