Turns out the FilterBlock's getOrdinal value is from the "get", and does not share the same reference as setOrdinal, whose value is from the "set", would modify.

Because of this, even if #getOrdinal returns 0, we still must update the set with 0 by #setOrdinal.
This commit is contained in:
IronApollo 2020-04-01 00:26:11 -04:00
parent 16df4abd18
commit 755ea09797

View File

@ -108,7 +108,7 @@ public class MaskingExtent extends AbstractDelegateExtent implements IBatchProce
@Override
public void applyBlock(FilterBlock block) {
int ordinal = block.getOrdinal();
if (ordinal != 0 && !mask.test(getExtent(), block)) {
if (!mask.test(getExtent(), block)) {
block.setOrdinal(0);
}
}