private Connection initConnection(String username, String password) throws SQLException { if (closeSuppressedConnection != null) { if (!borrowedConnection) { borrowedConnection = true; return closeSuppressedConnection; } } Connection target; if (username != null) { target = dataSource.getConnection(username, password); } else { target = dataSource.getConnection(); } return getCloseSuppressingConnectionProxy(target); }
private Connection initConnection(String username, String password) throws SQLException { if (closeSuppressedConnection != null) { if (!borrowedConnection) { borrowedConnection = true; return closeSuppressedConnection; } } Connection target; if (username != null) { target = dataSource.getConnection(username, password); } else { target = dataSource.getConnection(); } return getCloseSuppressingConnectionProxy(target); }