OSDN Git Service

apilint: Lint unhidden @IntDef and @LongDef
authorAdrian Roos <roosa@google.com>
Wed, 6 Mar 2019 12:38:10 +0000 (13:38 +0100)
committerAdrian Roos <roosa@google.com>
Wed, 6 Mar 2019 12:40:03 +0000 (13:40 +0100)
commit3478239c56d24d206ff7a5e5bbb0add4df5fadf2
tree03c8bd8dca9cc2a9a4069e9675be5dc75aa6e801
parent26968d81f8291f1dd4a0f8a7e962c60d62b9ef61
apilint: Lint unhidden @IntDef and @LongDef

@IntDefs and @LongDefs cannot be stored in a .class file, because the constant
names are lost. Instead, they are packaged out-of-band.

Therefore, they should never be in the API.

Test: python tools/apilint/apilint.py api/current.txt
Change-Id: If22e0cf7db0bb90dae6174bf546f2ec8be4e5458
tools/apilint/apilint.py