diff options
author | Xiao Ma <xiaom@google.com> | 2019-10-30 12:31:12 +0900 |
---|---|---|
committer | Xiao Ma <xiaom@google.com> | 2019-10-30 20:28:59 +0900 |
commit | eb61ab9aad76e896782c400015dbd2f1d9c62314 (patch) | |
tree | 7fadff3a88b9fe300caeaf395c151bfc989054a2 /src/com/android/server/NetworkStackService.java | |
parent | f3f5f36d71ff21eeb987781a8de4076bb35a232c (diff) |
Separate the timeout behavior from PacketRetransmittingState class.
The purpose is to make subclass that only requires timeout method
could extend from TimeoutState instead of PacketRetransmittingState,
avoiding the anti-pattern of using inheritance for code reuse only.
After refactoring, class inheritance relationship looks like:
LoggingState <-- TimeoutState <-- PacketRetransmittingState <-- DhcpInitState
Bug: 140223017
Test: atest FrameworksNetTests NetworkStackTests
Test: atest NetworkStackIntegrationTests
Change-Id: I1fed3ff3ef8b0bdf3645188949e38c3a332f9d6e
Diffstat (limited to 'src/com/android/server/NetworkStackService.java')
0 files changed, 0 insertions, 0 deletions