Skip to content

Commit ef48923

Browse files
authored
Updated libraries and plugins (#68)
* Updated libraries and plugins geotools: 25.0 -> 26.4 jackson: 2.12.4 -> 2.13.3 junit: 5.7.2 -> 5.8.2 dependency-check-maven: 6.0.1 -> 7.1.0 * always use ENGLISH locale To become independent of the Locale of the runtine system the locale (used to format numbers) should always be ENGLISH. fixed #67
1 parent 78c5688 commit ef48923

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<apache-commons-csv.version>1.8</apache-commons-csv.version>
2424
<apache-commons-codec.version>1.15</apache-commons-codec.version>
2525
<apache-commons-validator.version>1.7</apache-commons-validator.version>
26-
<geotools.version>25.0</geotools.version>
27-
<jackson.version>2.12.4</jackson.version>
28-
<junit.version>5.7.2</junit.version>
26+
<geotools.version>26.4</geotools.version>
27+
<jackson.version>2.13.3</jackson.version>
28+
<junit.version>5.8.2</junit.version>
2929
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
3030
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
3131
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
@@ -187,7 +187,7 @@
187187
<plugin>
188188
<groupId>org.owasp</groupId>
189189
<artifactId>dependency-check-maven</artifactId>
190-
<version>6.0.1</version>
190+
<version>7.1.0</version>
191191
<executions>
192192
<execution>
193193
<goals>
@@ -245,7 +245,7 @@
245245
<dependency>
246246
<groupId>org.geotools</groupId>
247247
<artifactId>gt-geometry</artifactId>
248-
<version>24.4</version>
248+
<version>24.6</version>
249249
</dependency>
250250

251251
<!-- https://mvnrepository.com/artifact/org.locationtech.jts/jts-core -->

src/main/java/io/frictionlessdata/tableschema/field/NumberField.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.math.BigInteger;
99
import java.net.URI;
1010
import java.text.NumberFormat;
11+
import java.util.Locale;
1112
import java.util.Map;
1213
import java.util.regex.Matcher;
1314
import java.util.regex.Pattern;
@@ -28,7 +29,7 @@ public class NumberField extends Field<Number> {
2829
private static final String REGEX_INTEGER = "[+-]?\\d+";
2930
private static final String REGEX_BARE_NUMBER = "((^\\D*)|(\\D*$))";
3031

31-
private static final NumberFormat numberFormat = NumberFormat.getInstance();
32+
private static final NumberFormat numberFormat = NumberFormat.getInstance(Locale.ENGLISH);
3233
static {
3334
numberFormat.setMaximumFractionDigits(Integer.MAX_VALUE);
3435
numberFormat.setGroupingUsed(false);

0 commit comments

Comments
 (0)