dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19845
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8824: Changed Map.longitude/latitude from String to Double
------------------------------------------------------------
revno: 8824
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-11-01 17:02:36 +0300
message:
Changed Map.longitude/latitude from String to Double
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/Map.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/Map.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/Map.java 2012-11-01 13:40:28 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/Map.java 2012-11-01 14:02:36 +0000
@@ -54,9 +54,9 @@
{
private User user;
- private String longitude;
+ private Double longitude;
- private String latitude;
+ private Double latitude;
private Integer zoom;
@@ -71,7 +71,7 @@
{
}
- public Map( String name, User user, String longitude, String latitude, Integer zoom )
+ public Map( String name, User user, Double longitude, Double latitude, Integer zoom )
{
this.name = name;
this.user = user;
@@ -101,12 +101,12 @@
@JsonProperty
@JsonView( {DetailedView.class, ExportView.class} )
@JacksonXmlProperty( namespace = Dxf2Namespace.NAMESPACE )
- public String getLongitude()
+ public Double getLongitude()
{
return longitude;
}
- public void setLongitude( String longitude )
+ public void setLongitude( Double longitude )
{
this.longitude = longitude;
}
@@ -114,12 +114,12 @@
@JsonProperty
@JsonView( {DetailedView.class, ExportView.class} )
@JacksonXmlProperty( namespace = Dxf2Namespace.NAMESPACE )
- public String getLatitude()
+ public Double getLatitude()
{
return latitude;
}
- public void setLatitude( String latitude )
+ public void setLatitude( Double latitude )
{
this.latitude = latitude;
}