Robert Varga
Robert Varga
The java.util.Collection.contains() method documents NPE (and CCE) as being legally thrown. Hence defensive code inquiring about presence needs to look like this: ``` List list; // known to be non-null,...
Using Arrays.binarySearch() and Arrays.sort() with a lambda comparator: ``` Arrays.sort(tmp, (o1, o2) -> { final int cmp = extractQName(o1).compareTo(extractQName(o2)); verify(cmp != 0, "Type %s conflicts with %s on schema tree",...
This fixes: - compilation with recent maven versions, which fail to run findbugs-maven-plugin - javadoc generation with recent JDK, which complains about use of '' in javadocs Finally it updates...
Pick up last version for Java 11, upgrading testing infrastructure. Fixes #94. Signed-off-by: Robert Varga
Update the few upstream dependencies and most notably testing runtime to combined JUnit4/JUnit 5 by adopting latest Java-11-capable odparent.
While we are using rudimentary JUnit features and the exact version does not exactly matter, migrate to JUnit5 just for the sake of using the latest&greatest.
We are currently using SpliteratorIterators backed by our custom iterators. This is a bit wasteful, because it allocates an additional object and in case of MutableTrieMap (and hence Mutable{Entry,Key}Set) we...
The TrieMap is an implementation of [a Ctrie](https://en.wikipedia.org/wiki/Ctrie). This means its iteration order is defined in terms of hashCode() of keys of stored mappings -- essentially an equivalent of a...
Current implementation of TrieSet works with a backing TrieMap, which works just fine, but is not completely memory-efficient because we allocate SNodes for values (and LNodes for key/value pairs). Given...
SPDX allows better analysis. Add SPDX headers to all files in the project.