Add missing final classifier
Test: TH Change-Id: I94286ebea155275dc4138fe837c307fc27daa930
This commit is contained in:
parent
ed30586041
commit
4b2ed85ddb
1 changed files with 4 additions and 5 deletions
|
|
@ -993,15 +993,14 @@ public class EthernetTracker {
|
|||
for (String keyValueAsString : staticIpConfig.trim().split(" ")) {
|
||||
if (TextUtils.isEmpty(keyValueAsString)) continue;
|
||||
|
||||
String[] pair = keyValueAsString.split("=");
|
||||
final String[] pair = keyValueAsString.split("=");
|
||||
if (pair.length != 2) {
|
||||
throw new IllegalArgumentException("Unexpected token: " + keyValueAsString
|
||||
+ " in " + staticIpConfig);
|
||||
}
|
||||
|
||||
String key = pair[0];
|
||||
String value = pair[1];
|
||||
|
||||
final String key = pair[0];
|
||||
final String value = pair[1];
|
||||
switch (key) {
|
||||
case "ip":
|
||||
staticIpConfigBuilder.setIpAddress(new LinkAddress(value));
|
||||
|
|
@ -1020,7 +1019,7 @@ public class EthernetTracker {
|
|||
staticIpConfigBuilder.setDnsServers(dnsAddresses);
|
||||
break;
|
||||
}
|
||||
default : {
|
||||
default: {
|
||||
throw new IllegalArgumentException("Unexpected key: " + key
|
||||
+ " in " + staticIpConfig);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue