1 package org.checkstyle.suppressionxpathfilter.variabledeclarationusagedistance; 2 3 public class InputXpathVariableDeclarationUsageDistanceOne { 4 private int test1; 5 6 public void test(int test1) { 7 int temp = -1; // warn 8 this.test1 = test1; 9 temp = test1; // DECLARATION OF VARIABLE 'temp' SHOULD BE HERE (distance = 2) 10 } 11 }