DATACMNS-437 - String representations should be locale independent.

We now use a fixed english locale for the rendering of toString() representations of Point objects.
This commit is contained in:
Thomas Darimont
2014-03-10 08:21:44 +01:00
parent 4c6afc5c30
commit f6348a1bbe

View File

@@ -15,6 +15,8 @@
*/ */
package org.springframework.data.geo; package org.springframework.data.geo;
import java.util.Locale;
import org.springframework.data.annotation.PersistenceConstructor; import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.util.Assert; import org.springframework.util.Assert;
@@ -126,6 +128,6 @@ public class Point {
*/ */
@Override @Override
public String toString() { 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);
} }
} }