Source:
public void start(Map<String, String> properties) throws ConnectException { try { configProperties = properties; config = new JdbcSourceConnectorConfig(configProperties); } catch (ConfigException e) { throw new ConnectException("Couldn't start JdbcSourceConnector due to configuration " + "error", e); } String dbUrl = config.getString(JdbcSourceConnectorConfig.CONNECTION_URL_CONFIG); log.debug("Trying to connect to {}", dbUrl); try { db = DriverManager.getConnection(dbUrl); } catch (SQLException e) { log.error("Couldn't open connection to {}: {}", dbUrl, e); throw new ConnectException(e); } long tablePollMs = config.getLong(JdbcSourceConnectorConfig.TABLE_POLL_INTERVAL_MS_CONFIG); List<String> whitelist = config.getList(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG); Set<String> whitelistSet = whitelist.isEmpty() ? null : new HashSet<>(whitelist); List<String> blacklist = config.getList(JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG); Set<String> blacklistSet = blacklist.isEmpty() ? null : new HashSet<>(blacklist); List<String> tableTypes = config.getList(JdbcSourceConnectorConfig.TABLE_TYPE_CONFIG); Set<String> tableTypesSet = new HashSet<>(tableTypes); if (whitelistSet != null && blacklistSet != null) throw new ConnectException(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG + " and " + JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG + " are " + "exclusive."); String query = config.getString(JdbcSourceConnectorConfig.QUERY_CONFIG); String schemaPattern = config.getString(JdbcSourceConnectorConfig.SCHEMA_PATTERN_CONFIG); if (!query.isEmpty()) { if (whitelistSet != null || blacklistSet != null) throw new ConnectException(JdbcSourceConnectorConfig.QUERY_CONFIG + " may not be combined" + " with whole-table copying settings."); whitelistSet = Collections.emptySet(); } tableMonitorThread = new TableMonitorThread(db, schemaPattern, context, tablePollMs, whitelistSet, blacklistSet, tableTypesSet); tableMonitorThread.start(); }

Target:
public void start(Map<String, String> properties) throws ConnectException { try { configProperties = properties; config = new JdbcSourceConnectorConfig(configProperties); } catch (ConfigException e) { throw new ConnectException("Couldn't start JdbcSourceConnector due to configuration " + "error", e); } String dbUrl = config.getString(JdbcSourceConnectorConfig.CONNECTION_URL_CONFIG); log.debug("Trying to connect to {}", dbUrl); try { db = DriverManager.getConnection(dbUrl); } catch (SQLException e) { log.error("Couldn't open connection to {}: {}", dbUrl, e); throw new ConnectException(e); } long tablePollMs = config.getLong(JdbcSourceConnectorConfig.TABLE_POLL_INTERVAL_MS_CONFIG); List<String> whitelist = config.getList(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG); Set<String> whitelistSet = whitelist.isEmpty() ? null : new HashSet<>(whitelist); List<String> blacklist = config.getList(JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG); Set<String> blacklistSet = blacklist.isEmpty() ? null : new HashSet<>(blacklist); List<String> tableTypes = config.getList(JdbcSourceConnectorConfig.TABLE_TYPE_CONFIG); Set<String> tableTypesSet = new HashSet<>(tableTypes); if (whitelistSet != null && blacklistSet != null) throw new ConnectException(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG + " and " + JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG + " are " + "exclusive."); String query = config.getString(JdbcSourceConnectorConfig.QUERY_CONFIG); String schemaPattern = config.getString(JdbcSourceConnectorConfig.SCHEMA_PATTERN_CONFIG); if (!query.isEmpty()) { if (whitelistSet != null || blacklistSet != null) throw new ConnectException(JdbcSourceConnectorConfig.QUERY_CONFIG + " may not be combined" + " with whole-table copying settings."); whitelistSet = Collections.emptySet(); } tableMonitorThread = new TableMonitorThread(db, context, schemaPattern, tablePollMs, whitelistSet, blacklistSet, tableTypesSet); tableMonitorThread.start(); }