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
1 file changed