Source:
<code>DatabaseHandler(File propertiesFile, int maxSentences, int maxErrors) { super(maxSentences, maxErrors); final String lookupSql = "SELECT id FROM corpus_match_hidden WHERE " + "language_code = ? AND sourceuri = ? AND ruleid = ? AND small_error_context = ?"; final String insertSql = "INSERT INTO corpus_match " + "(version, language_code, ruleid, rule_category, rule_subid, rule_description, message, error_context, small_error_context, corpus_date, " + "check_date, sourceuri, source_type, is_visible) "+ "VALUES (0, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1)"; final Properties dbProperties = new Properties(); try (FileInputStream inStream = new FileInputStream(propertiesFile)) { dbProperties.load(inStream); final String dbUrl = getProperty(dbProperties, "dbUrl"); final String dbUser = getProperty(dbProperties, "dbUser"); final String dbPassword = getProperty(dbProperties, "dbPassword"); try { batchSize = Integer.decode(dbProperties.getProperty("batchSize", "1")); } <START> catch(NumberFormatException e){ <END> batchSize = 1; } conn = DriverManager.getConnection(dbUrl, dbUser, dbPassword); lookupSt = conn.prepareStatement(lookupSql); insertSt = conn.prepareStatement(insertSql); } catch (SQLException | IOException e) { throw new RuntimeException(e); } contextTools = new ContextTools(); contextTools.setContextSize(MAX_CONTEXT_LENGTH); contextTools.setErrorMarkerStart(MARKER_START); contextTools.setErrorMarkerEnd(MARKER_END); contextTools.setEscapeHtml(false); smallContextTools = new ContextTools(); smallContextTools.setContextSize(SMALL_CONTEXT_LENGTH); smallContextTools.setErrorMarkerStart(MARKER_START); smallContextTools.setErrorMarkerEnd(MARKER_END); smallContextTools.setEscapeHtml(false); }</code><technical_language>I this work 1 is default user exception if set batchSize=a</technical_language>

Target:
DatabaseHandler(File propertiesFile, int maxSentences, int maxErrors) { super(maxSentences, maxErrors); final String lookupSql = "SELECT id FROM corpus_match_hidden WHERE " + "language_code = ? AND sourceuri = ? AND ruleid = ? AND small_error_context = ?"; final String insertSql = "INSERT INTO corpus_match " + "(version, language_code, ruleid, rule_category, rule_subid, rule_description, message, error_context, small_error_context, corpus_date, " + "check_date, sourceuri, source_type, is_visible) "+ "VALUES (0, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1)"; final Properties dbProperties = new Properties(); try (FileInputStream inStream = new FileInputStream(propertiesFile)) { dbProperties.load(inStream); final String dbUrl = getProperty(dbProperties, "dbUrl"); final String dbUser = getProperty(dbProperties, "dbUser"); final String dbPassword = getProperty(dbProperties, "dbPassword"); batchSize = Integer.decode(dbProperties.getProperty("batchSize", "1")); conn = DriverManager.getConnection(dbUrl, dbUser, dbPassword); lookupSt = conn.prepareStatement(lookupSql); insertSt = conn.prepareStatement(insertSql); } catch (SQLException | IOException e) { throw new RuntimeException(e); } contextTools = new ContextTools(); contextTools.setContextSize(MAX_CONTEXT_LENGTH); contextTools.setErrorMarkerStart(MARKER_START); contextTools.setErrorMarkerEnd(MARKER_END); contextTools.setEscapeHtml(false); smallContextTools = new ContextTools(); smallContextTools.setContextSize(SMALL_CONTEXT_LENGTH); smallContextTools.setErrorMarkerStart(MARKER_START); smallContextTools.setErrorMarkerEnd(MARKER_END); smallContextTools.setEscapeHtml(false); }