This is what the documentation is for Worker constructor
/** * Creates worker that connects to an instance of the Cadence Service. * * @param client client to the Cadence Service endpoint. * @param taskList task list name worker uses to poll. It uses this name for both decision and * activity task list polls. * @param options Options (like {@link DataConverter} override) for configuring worker. */
link
WorkerOptions have changed now and no longer have DataConverter . DataConverter is being passed via client.getOptions().getDataConverter() . Documentation should be modified so that it is relevant to the current state.