Skip to content

Commit 1b82142

Browse files
authored
Merge pull request #88 from amadeus4dev/update-safety-class
Add client to safety class and fix docs
2 parents ca50fa8 + 08f2865 commit 1b82142

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/com/amadeus/Safety.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class Safety {
3535
* @hide
3636
*/
3737
public Safety(Amadeus client) {
38+
this.client = client;
3839
this.safetyRatedLocations = new SafetyRatedLocations(client);
3940
}
4041

@@ -47,4 +48,4 @@ public Safety(Amadeus client) {
4748
public SafetyRatedLocation safetyRatedLocation(String safetyRatedLocationId) {
4849
return new SafetyRatedLocation(client, safetyRatedLocationId);
4950
}
50-
}
51+
}

src/main/java/com/amadeus/safety/SafetyRatedLocation.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.amadeus.exceptions.ResponseException;
77
import com.amadeus.resources.Resource;
88
import com.amadeus.resources.SafePlace;
9-
import com.google.gson.Gson;
109

1110
/**
1211
* <p>
@@ -42,9 +41,7 @@ public SafetyRatedLocation(Amadeus client, String safetyRatedLocationId) {
4241
* </p>
4342
*
4443
* <pre>
45-
* amadeus.safety.safetyRatedLocations.get(Params
46-
* .with("longitude", 2.160873)
47-
* .and("latitude", 41.397158));</pre>
44+
* amadeus.safety.safetyRatedLocation("Q930402719").get();</pre>
4845
*
4946
* @param params the parameters to send to the API
5047
* @return an API response object

0 commit comments

Comments
 (0)