diff options
author | Tobias Thierer <tobiast@google.com> | 2019-09-25 15:45:19 +0100 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2020-01-11 16:56:44 +0000 |
commit | a29be7424e9834d0ba6681c9cba62fb9904f6d14 (patch) | |
tree | fb13c1ad85b8a5e49aa411329beb61eb7ac06a9a /annotations/generate_annotated_java_files.py | |
parent | d3c031d842e8fcc6a0e74bb8fcb4b5abfbc4c8c9 (diff) |
Tweak SwitchTargetSdkVersionRule.
The state change that we reverse in the finally block
should live before the try block, because if it throws
then the finally block is also not needed.
It shouldn't normally throw, so in practice this probably
made no difference so far, but I'm fixing it because it
sets a bad precedent (I've recently seen a draft CL that
was inspired by this code and replicated this antipattern
elsewhere).
Test: Treehugger
Change-Id: I20c679c6f934b1681ce40518c3b5215a1936fd5a
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions