Skip to content

Commit

Permalink
Fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Oct 12, 2024
1 parent 1325256 commit 1f9cc17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,12 @@ public void setup() throws IOException {
@Benchmark
public void read() {
GeoParquetReader reader = new GeoParquetReader(directory.toUri());
reader.read().count();
long count = reader.read().count();

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'long count' is never read.
}

@Benchmark
public void readParallel() {
GeoParquetReader reader = new GeoParquetReader(directory.toUri());
reader.readParallel().count();
long count = reader.readParallel().count();

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'long count' is never read.
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ public void setup() throws IOException {
public void read() {
GeoParquetReader reader =
new GeoParquetReader(Path.of("baremaps-benchmarking/small/*.parquet").toUri());
reader.read().count();
long count = reader.read().count();

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'long count' is never read.
}

@Benchmark
public void readParallel() {
GeoParquetReader reader =
new GeoParquetReader(Path.of("baremaps-benchmarking/small/*.parquet").toUri());
reader.readParallel().count();
long count = reader.readParallel().count();

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'long count' is never read.
}
}

0 comments on commit 1f9cc17

Please sign in to comment.