You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2019/06/15 07:01:17 UTC

[jclouds] branch master updated: Fix type of location coordinates (#36)

This is an automated email from the ASF dual-hosted git repository.

nacx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git


The following commit(s) were added to refs/heads/master by this push:
     new 215df85  Fix type of location coordinates (#36)
215df85 is described below

commit 215df85105c23fddf552dbbb46e6c0e76a465273
Author: Ignasi Barrera <na...@apache.org>
AuthorDate: Sat Jun 15 09:01:13 2019 +0200

    Fix type of location coordinates (#36)
---
 .../main/java/org/jclouds/azurecompute/arm/domain/Location.java   | 8 ++++----
 .../jclouds/azurecompute/arm/features/LocationApiMockTest.java    | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/Location.java b/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/Location.java
index a597a61..e3e70e3 100644
--- a/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/Location.java
+++ b/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/Location.java
@@ -42,16 +42,16 @@ public abstract class Location {
    /**
     * The longitude of the datacenter
     */
-   public abstract double longitude();
+   public abstract String longitude();
 
    /**
     * The latitude of the datacenter
     */
-   public abstract double latitude();
+   public abstract String latitude();
 
    @SerializedNames({"id", "name", "displayName", "longitude", "latitude"})
-   public static Location create(final String id, final String name, final String displayName, final double longitude,
-           final double latitude) {
+   public static Location create(final String id, final String name, final String displayName, final String longitude,
+           final String latitude) {
 
       return new AutoValue_Location(id, name, displayName, longitude, latitude);
    }
diff --git a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/LocationApiMockTest.java b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/LocationApiMockTest.java
index 5ea60d4..50ecbe7 100644
--- a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/LocationApiMockTest.java
+++ b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/LocationApiMockTest.java
@@ -33,7 +33,7 @@ public class LocationApiMockTest extends BaseAzureComputeApiMockTest {
       final LocationApi locationAPI = api.getLocationApi();
       assertEquals(locationAPI.list(), ImmutableList.of(
               Location.create("/subscriptions/SUBSCRIPTIONID/locations/eastasia",
-                      "eastasia", "East Asia", 114.188, 22.267)
+                      "eastasia", "East Asia", "114.188", "22.267")
       ));
       assertSent(server, "GET", "/subscriptions/SUBSCRIPTIONID/locations?api-version=2015-11-01");
    }