I am going to assume your having three copies of this thread simply means you pushed the same button thrice.
Apart from the fact that shorts should only be worn above the knee, and not used in normal programming:-
Butx − 1 is a constant. You are declaring a compile‑time constant 2 and assigning it to a final local variable x, so x also becomes a compile‑time constant. Because line 5 only contains expressions using ordinary arithmetic operators on compile‑time constants, it is a compile‑time constant itself. You can see that from the bytecode, using the javap tool:-Line 13 and 15 how you are using 1 as a constant.