#vulnerable code 
                              @Test
  public void testSetNonIntValuesToIntProperties() {
    SqlLine sqlLine = new SqlLine();
    final String headerIntervalScript = "!set headerinterval abc\n";
    checkScriptFile(headerIntervalScript, false, equalTo(SqlLine.Status.OK),
        containsString(sqlLine.loc("not-a-number", "headerinterval", "abc")));

    final String rowLimitScript = "!set rowlimit xxx\n";
    checkScriptFile(rowLimitScript, false, equalTo(SqlLine.Status.OK),
        containsString(sqlLine.loc("not-a-number", "rowlimit", "xxx")));
  } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test
  public void testSetNonIntValuesToIntProperties() {
    final String headerIntervalScript = "!set headerinterval abc\n";
    checkScriptFile(headerIntervalScript, true, equalTo(SqlLine.Status.OK),
        containsString(sqlLine.loc("not-a-number", "headerinterval", "abc")));

    final String rowLimitScript = "!set rowlimit xxx\n";
    checkScriptFile(rowLimitScript, true, equalTo(SqlLine.Status.OK),
        containsString(sqlLine.loc("not-a-number", "rowlimit", "xxx")));
  }