Conversation
beb3b3c to
b7bbc1c
Compare
There was a problem hiding this comment.
CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
682b70b to
5492e0c
Compare
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public long computeIfAbsent(final long key, final Long2LongFunction mappingFunction) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public long computeIfAbsent(final long key, final Long2LongFunction mappingFunction) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public V computeIfAbsent(final long key, final Long2ObjectFunction<? extends V> mappingFunction) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
| public Set<Entry<Long, E>> entrySet() { | ||
| return new EntrySet(); | ||
| default List<E> getAll(List<Long> keys) { | ||
| return Streams.stream(keys).map(this::get).toList(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| if (wrapped == null) { | ||
| wrapped = new LongArrayList(2); | ||
| } | ||
| wrapped.add(pair.left()); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| if (wrapped == null) { | ||
| wrapped = new LongArrayList(2); | ||
| } | ||
| wrapped.add(key.get(pos)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| if (wrapped == null) { | ||
| wrapped = new LongArrayList(2); | ||
| } | ||
| wrapped.add(key.get(pos)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
baremaps-core/src/main/java/org/apache/baremaps/database/collection/AppendOnlyBuffer.java
Fixed
Show fixed
Hide fixed
a15380f to
c26d539
Compare
| * @deprecated Please use the corresponding type-specific method instead. | ||
| */ | ||
| @Override | ||
| public Long setValue(final Long v) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
| * @deprecated Please use the corresponding type-specific method instead. | ||
| */ | ||
| @Override | ||
| public Long setValue(final Long v) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods
d325035 to
dca3ce4
Compare
|
SonarCloud Quality Gate failed.
|











This pull request adds a jagged data structure and several open hash data structures derived from fastutil.
The open hash data structure have performence similar to the monotonic data structures. They probably use more space, but they relax the ordering constraint when inserting entries. Some of the features (e.g. rehashing) have not be extensively tested, but this is not something we need right now (i.e. we are usually able to guess the number of entries in advance).