Skip to content

Commit

Permalink
Remove type parametrization
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Jun 26, 2024
1 parent 52e92f7 commit e8cd6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public class PackedRTree {
private long numNodes;
private List<Pair<Integer, Integer>> levelBounds;

public PackedRTree(final List<? extends Item> items, final short nodeSize) {
public PackedRTree(final List<Item> items, final short nodeSize) {
this.numItems = items.size();
init(nodeSize);
int k = (int) (this.numNodes - this.numItems);
Iterator<? extends Item> it = items.iterator();
Iterator<Item> it = items.iterator();
for (int i = 0; i < this.numItems; ++i) {
this.nodeItems[k++] = it.next().nodeItem();
}
Expand Down Expand Up @@ -174,7 +174,7 @@ private static long hibert(long x, long y) {
return ((i1 << 1) | i0);
}

public static NodeItem calcExtent(List<? extends Item> items) {
public static NodeItem calcExtent(List<Item> items) {
return items.stream()
.map(Item::nodeItem)
.reduce(new NodeItem(0), NodeItem::expand);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.apache.baremaps.testing.TestFiles;
import org.junit.jupiter.api.Test;

public class FlatGeoBufTest {
class FlatGeoBufTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: FlatGeoBufTest is not referenced within this codebase. If not used as an external API it should be removed.

@Test
void readWrite() throws IOException {
Expand Down

0 comments on commit e8cd6f8

Please sign in to comment.