Skip to content

Commit

Permalink
pr cleanup isloggable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
turingtestfail committed Mar 15, 2024
1 parent 1b82af1 commit 42e283b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ public Optional<Feature> buildFeature(
f.setStyle(spaceDelimitedCSSClasses);
}
// can't convert geometry to type expected by symbolizer
if (geometryContent.isEmpty() && LOGGER.isLoggable(Level.FINER)) {
LOGGER.finer(
"Could not convert geometry of type"
+ (g != null ? g.getGeometryType() : "null")
+ " to symbolizer type: "
+ mapMLStyles.get(0).getSymbolizerType());
if (geometryContent.isEmpty()) {
if (LOGGER.isLoggable(Level.FINER)) {
LOGGER.finer(
"Could not convert geometry of type"
+ (g != null ? g.getGeometryType() : "null")
+ " to symbolizer type: "
+ mapMLStyles.get(0).getSymbolizerType());
}
return Optional.empty();
}
f.setGeometry(geometryContent.get());
Expand Down

0 comments on commit 42e283b

Please sign in to comment.