summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-05-02 13:36:28 +0900
committerHugo Benichi <hugobenichi@google.com>2017-08-03 14:19:43 +0900
commitcf96a1b36d00167f912d294a34c9a5151b922832 (patch)
tree7c613c3ebf21a26745ecf168780ff12a194d6927 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0553f96c0a477f16e4daab7c7b51d8904cbec0bf (diff)
NsdManager: remove duplicated argument validation
This patch simplifies argument validation in NsdManager public api and regroup duplicated validation into common methods. This makes stack traces more actionable as now specific errors will cause the api to throw exception from specific methods, whereas before IllegalArgumentException would be thrown from inside the same api method for different reasons. This patch also includes a couple of other small cleanups. Test: $ runtest -x frameworks/base/tests/net/../NsdManagerTest.java Bug: 37013369 (cherry picked from commit ff3e6ccca1715ae72c6499cc7c894d27f46e8403) Change-Id: Icf047532aa551fbe0a70721cfb95507eaa84d51e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions