File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
flight/flight-core/src/main/java/org/apache/arrow/flight Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3232import java .io .InputStream ;
3333import java .net .URISyntaxException ;
3434import java .nio .ByteBuffer ;
35+ import java .util .ArrayList ;
3536import java .util .Iterator ;
3637import java .util .List ;
3738import java .util .Optional ;
@@ -84,7 +85,8 @@ public class FlightClient implements AutoCloseable {
8485 List <FlightClientMiddleware .Factory > middleware ) {
8586 this .allocator = incomingAllocator .newChildAllocator ("flight-client" , 0 , Long .MAX_VALUE );
8687 this .channel = channel ;
87- this .middleware = middleware ;
88+ // We need a mutable copy (shared between this class and ClientInterceptorAdapter)
89+ this .middleware = new ArrayList <>(middleware );
8890
8991 final ClientInterceptor [] interceptors ;
9092 interceptors =
You can’t perform that action at this time.
0 commit comments