Skip to content

Commit

Permalink
added dummy value to acquiesque the checker framework
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Jan 8, 2024
1 parent d1ced70 commit ac77a7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.checkerframework.checker.nullness.qual.Nullable;

import io.usethesource.vallang.IValue;
import io.usethesource.vallang.impl.persistent.ValueFactory;

/**
* A specialized version of the ShareableSet, specifically meant for storing values.
Expand Down Expand Up @@ -345,7 +346,7 @@ public SetIterator(@Nullable Entry<IValue>[] entries) {
data = entries;

index = data.length - 1;
current = new Entry<>(0, null, data[index]);
current = new Entry<>(0, ValueFactory.getInstance().bool(true) /* dummy */, data[index]);
locateNext(data);
}

Expand Down

0 comments on commit ac77a7e

Please sign in to comment.