Remove Assert lint suppression.
BUG=webrtc:6597 NOTRY=True Review-Url: https://codereview.webrtc.org/2668963002 Cr-Commit-Position: refs/heads/master@{#16460}
This commit is contained in:
parent
4709e8971b
commit
1959b63b61
@ -6,7 +6,6 @@
|
||||
<!-- TODO(phoglund): make work with suppress.py or remove printout referring
|
||||
to suppress.py. -->
|
||||
|
||||
<issue id="Assert" severity="ignore"/>
|
||||
<issue id="UseSparseArrays" severity="ignore"/>
|
||||
|
||||
<issue id="LongLogTag" severity="ignore"/>
|
||||
|
||||
@ -263,7 +263,10 @@ public class NetworkMonitorAutoDetect extends BroadcastReceiver {
|
||||
// ConnectivityManager.getDefaultNetwork() though this
|
||||
// may give confusing results with VPNs and is only
|
||||
// available with Android Marshmallow.
|
||||
assert defaultNetId == INVALID_NET_ID;
|
||||
if (defaultNetId != INVALID_NET_ID) {
|
||||
throw new RuntimeException(
|
||||
"Multiple connected networks of same type are not supported.");
|
||||
}
|
||||
defaultNetId = networkToNetId(network);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user