Skip to content

Commit

Permalink
chore(deps): review dgpr-simplify parsing to allow commons-cli update…
Browse files Browse the repository at this point in the history
… (refs #337)
  • Loading branch information
mborne committed Aug 6, 2024
1 parent a533bdf commit 2160541
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import org.apache.logging.log4j.MarkerManager;
import org.locationtech.jts.geom.Geometry;

import com.ctc.wstx.util.StringUtil;

import fr.ign.validator.Context;
import fr.ign.validator.Version;
import fr.ign.validator.command.options.DocumentEmpriseOption;
Expand Down Expand Up @@ -887,8 +889,8 @@ protected void parseTopologicalToleranceOption(CommandLine commandLine) throws P
* @throws ParseException
*/
protected void parseDistanceSimplificationOption(CommandLine commandLine) throws ParseException {
String strValue = commandLine.getOptionValue("dgpr-simplify", null);
if (strValue == null) {
String strValue = commandLine.getOptionValue("dgpr-simplify");
if (StringUtils.isEmpty(strValue)) {
this.dgprSimplification = null;
log.info(MARKER, "validator command running whith no geometric simplification");
return;
Expand Down

0 comments on commit 2160541

Please sign in to comment.