mirror of https://github.com/apache/druid.git
make last commit a final var
This commit is contained in:
parent
cb1798c520
commit
9ebdf16ed6
|
@ -45,7 +45,7 @@ public class ReferenceCountingSequence<T> extends YieldingSequenceBase<T>
|
||||||
OutType initValue, YieldingAccumulator<OutType, T> accumulator
|
OutType initValue, YieldingAccumulator<OutType, T> accumulator
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Closeable closeable = segment.increment();
|
final Closeable closeable = segment.increment();
|
||||||
return new ResourceClosingYielder<OutType>(baseSequence.toYielder(initValue, accumulator), closeable);
|
return new ResourceClosingYielder<OutType>(baseSequence.toYielder(initValue, accumulator), closeable);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue