OSDN Git Service

MacAddress: add @NonNull annotations
authorHugo Benichi <hugobenichi@google.com>
Fri, 12 Jan 2018 00:46:29 +0000 (09:46 +0900)
committerHugo Benichi <hugobenichi@google.com>
Tue, 16 Jan 2018 04:32:59 +0000 (13:32 +0900)
commit48872c6342f7c64cfb92204991bc0bd3d1a67f13
tree238413dd38ecec045b7df62a2ebcbac4aea2615e
parente61ee4198e3e568ad0836e33e27bb4bdcb64b9f1
MacAddress: add @NonNull annotations

This patch adds to the MacAddress class:
  - getAddressType() method which replaces addressType(), for naming
  consistency
  - @NonNull annotations on all input and output reference values for
  all public methods (@hide and public).

TYPE_UNKNOWN, which currently cannot be observed with a non @hide
method, is also removed from the public api.

Bug: 71866627
Test: $ runtest frameworks-net
Change-Id: I2af70408d46f431b7b32183e6b48ddae9a261a2c
api/current.txt
core/java/android/net/MacAddress.java
core/java/android/net/metrics/WakeupStats.java
tests/net/java/android/net/MacAddressTest.java