Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test the readers with osm-test data #816

Merged
merged 12 commits into from
Jan 2, 2024
Merged

Test the readers with osm-test data #816

merged 12 commits into from
Jan 2, 2024

Conversation

bchapuis
Copy link
Member

No description provided.

try {
Files.lines(path).forEach(line -> {
var needle = line.indexOf(' ');
var id = Long.parseLong(line.substring(0, needle).strip());

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note test

Potential uncaught 'java.lang.NumberFormatException'.
}
}

private class OsmTest implements Comparable<OsmTest> {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

OsmTest should be made static, since the enclosing instance is not used.
}
}

private class OsmTest implements Comparable<OsmTest> {

Check warning

Code scanning / CodeQL

Inconsistent compareTo Warning test

This class declares
compareTo
but inherits equals; the two could be inconsistent.
&& multiPolygon.getNumGeometries() == 1) {
testGeometry = multiPolygon.getGeometryN(0);
}
if (!testGeometry.isValid()) {

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning test

Variable
testGeometry
may be null at this access because of
this
assignment.
@bchapuis bchapuis marked this pull request as ready for review January 1, 2024 21:36
Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

11 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bchapuis bchapuis merged commit 8ea446a into main Jan 2, 2024
9 checks passed
@bchapuis bchapuis deleted the osm-test branch January 2, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant