Track constructor changes in libcore/
The 2-arg constructor is being removed. Test: build / boot Bug: 111055375 Change-Id: I72413a8c7885f9514a88f59deb649fa755deff92
This commit is contained in:
@@ -192,7 +192,7 @@ public class NetworkStatsFactory {
|
|||||||
reader.finishLine();
|
reader.finishLine();
|
||||||
}
|
}
|
||||||
} catch (NullPointerException|NumberFormatException e) {
|
} catch (NullPointerException|NumberFormatException e) {
|
||||||
throw new ProtocolException("problem parsing stats", e);
|
throw protocolExceptionWithCause("problem parsing stats", e);
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(reader);
|
IoUtils.closeQuietly(reader);
|
||||||
StrictMode.setThreadPolicy(savedPolicy);
|
StrictMode.setThreadPolicy(savedPolicy);
|
||||||
@@ -242,7 +242,7 @@ public class NetworkStatsFactory {
|
|||||||
reader.finishLine();
|
reader.finishLine();
|
||||||
}
|
}
|
||||||
} catch (NullPointerException|NumberFormatException e) {
|
} catch (NullPointerException|NumberFormatException e) {
|
||||||
throw new ProtocolException("problem parsing stats", e);
|
throw protocolExceptionWithCause("problem parsing stats", e);
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(reader);
|
IoUtils.closeQuietly(reader);
|
||||||
StrictMode.setThreadPolicy(savedPolicy);
|
StrictMode.setThreadPolicy(savedPolicy);
|
||||||
@@ -339,7 +339,7 @@ public class NetworkStatsFactory {
|
|||||||
reader.finishLine();
|
reader.finishLine();
|
||||||
}
|
}
|
||||||
} catch (NullPointerException|NumberFormatException e) {
|
} catch (NullPointerException|NumberFormatException e) {
|
||||||
throw new ProtocolException("problem parsing idx " + idx, e);
|
throw protocolExceptionWithCause("problem parsing idx " + idx, e);
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(reader);
|
IoUtils.closeQuietly(reader);
|
||||||
StrictMode.setThreadPolicy(savedPolicy);
|
StrictMode.setThreadPolicy(savedPolicy);
|
||||||
@@ -376,4 +376,10 @@ public class NetworkStatsFactory {
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public static native int nativeReadNetworkStatsDev(NetworkStats stats);
|
public static native int nativeReadNetworkStatsDev(NetworkStats stats);
|
||||||
|
|
||||||
|
private static ProtocolException protocolExceptionWithCause(String message, Throwable cause) {
|
||||||
|
ProtocolException pe = new ProtocolException(message);
|
||||||
|
pe.initCause(cause);
|
||||||
|
return pe;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user