fix Sink.fanoutPublisher’s type for Java