1 package org.checkstyle.suppressionxpathfilter.finallocalvariable; 2 3 public class InputXpathFinalLocalVariableConditionals { 4 private void checkCodeBlock() { 5 try { 6 7 final int from; 8 if (true) { 9 from = 0; 10 } else if (true) { 11 boolean body = false; // warn 12 if (body) return; 13 from = 0; 14 } else { 15 return; 16 } 17 } catch (Exception e) { 18 throw new RuntimeException(e); 19 } 20 } 21 } 22