diff --git a/src/main/java/com/amadeus/Safety.java b/src/main/java/com/amadeus/Safety.java index 8166d423..b7378f35 100644 --- a/src/main/java/com/amadeus/Safety.java +++ b/src/main/java/com/amadeus/Safety.java @@ -35,6 +35,7 @@ public class Safety { * @hide */ public Safety(Amadeus client) { + this.client = client; this.safetyRatedLocations = new SafetyRatedLocations(client); } @@ -47,4 +48,4 @@ public Safety(Amadeus client) { public SafetyRatedLocation safetyRatedLocation(String safetyRatedLocationId) { return new SafetyRatedLocation(client, safetyRatedLocationId); } -} +} \ No newline at end of file diff --git a/src/main/java/com/amadeus/safety/SafetyRatedLocation.java b/src/main/java/com/amadeus/safety/SafetyRatedLocation.java index c3d64257..a11f8abd 100644 --- a/src/main/java/com/amadeus/safety/SafetyRatedLocation.java +++ b/src/main/java/com/amadeus/safety/SafetyRatedLocation.java @@ -6,7 +6,6 @@ import com.amadeus.exceptions.ResponseException; import com.amadeus.resources.Resource; import com.amadeus.resources.SafePlace; -import com.google.gson.Gson; /** *

@@ -42,9 +41,7 @@ public SafetyRatedLocation(Amadeus client, String safetyRatedLocationId) { *

* *
-   * amadeus.safety.safetyRatedLocations.get(Params
-   *   .with("longitude", 2.160873)
-   *   .and("latitude", 41.397158));
+ * amadeus.safety.safetyRatedLocation("Q930402719").get(); * * @param params the parameters to send to the API * @return an API response object