-
Notifications
You must be signed in to change notification settings - Fork 81
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
Jdk11 compatibility and Gradle 5 #132
Conversation
* {@link FlaggedRelation} feature | ||
* @return geometry as {@link JsonElement} | ||
*/ | ||
private static JsonElement getFlaggedRelationGeometryFromFeature( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ordering only
{ | ||
final JsonObject feature = atlasItem.asGeoJsonGeometry(); | ||
final JsonObject properties = feature.getAsJsonObject("properties"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would return null and fail some tests after osmlab/atlas#369
{ | ||
feature = locationItem.asGeoJsonGeometry(); | ||
properties = feature.getAsJsonObject("properties"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would return null and fail some tests after osmlab/atlas#369
@@ -62,9 +44,10 @@ public FlaggedRelation(final Relation relation) | |||
public JsonObject asGeoJsonFeature(final String flagIdentifier) | |||
{ | |||
final JsonObject feature = this.relation.asGeoJsonGeometry(); | |||
final JsonObject featureProperties = feature.getAsJsonObject("properties"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would return null and fail some tests after osmlab/atlas#369
src/main/java/org/openstreetmap/atlas/checks/validation/tag/AbbreviatedNameCheck.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me. Although I guess would need to look into what SonarQube is complaining about.
config/checkstyle/checkstyle.xml
Outdated
@@ -131,7 +131,9 @@ | |||
|
|||
<!-- Miscellaneous other checks. --> | |||
<module name="ArrayTypeStyle" /> | |||
<module name="AvoidEscapedUnicodeCharacters"/> | |||
<module name="AvoidEscapedUnicodeCharacters"> | |||
<property name="allowEscapesForControlCharacters" value="true"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice I like this addition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all this work
@mgcuthbert Sonar is complaining about this deprecated method: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks like it's mostly just lib version upgrade and code formatting change.
I would recommend jumping major version number after merging this.
* update atlas & atlas-generator dependencies version * continue to use atlas 5.1.13
Description:
This enables the project to be built using OpenJDK 11. Followup of osmlab/atlas#366
This also enables gradle 5.2.1
11.0.2+9
importOrder([ x, y, z])
becomesimportOrder x, y, z
Upgraded to latest guava (temporarily, until JDK11 Followup atlas#374 is merged and released). This solves issues with the classpath scanning utilities that stopped working in jdk11.runGenerator.execute()
is invalid. Replaced byrun.finalizedBy(runGenerator)
at the end.Potential Impact:
The impact should be confined to this repository.
Unit Test Approach:
Ran unit tests and integration tests.
Test Results:
Tests pass