Browse Source

DATACMNS-437 - String representations should be locale independent.

We now use a fixed english locale for the rendering of toString() representations of Point objects.
pull/75/merge
Thomas Darimont 12 years ago
parent
commit
f6348a1bbe
  1. 4
      src/main/java/org/springframework/data/geo/Point.java

4
src/main/java/org/springframework/data/geo/Point.java

@ -15,6 +15,8 @@ @@ -15,6 +15,8 @@
*/
package org.springframework.data.geo;
import java.util.Locale;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.util.Assert;
@ -126,6 +128,6 @@ public class Point { @@ -126,6 +128,6 @@ public class Point {
*/
@Override
public String toString() {
return String.format("Point [x=%f, y=%f]", x, y);
return String.format(Locale.ENGLISH, "Point [x=%f, y=%f]", x, y);
}
}

Loading…
Cancel
Save