Skip to content

Commit 55c35f5

Browse files
committed
fix smell in flight orders
1 parent 0896e8e commit 55c35f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/amadeus/booking/FlightOrders.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
public class FlightOrders {
3333
private Amadeus client;
34-
private static final String flightOrdersUrl = "/v1/booking/flight-orders";
34+
private static final String FlightOrdersUrl = "/v1/booking/flight-orders";
3535

3636
/**
3737
* Constructor.
@@ -90,7 +90,7 @@ private JsonArray buildFlightOffersJSON(FlightOfferSearch[] flightOffers) {
9090
* @throws ResponseException when an exception occurs
9191
*/
9292
public FlightOrder post(JsonObject body) throws ResponseException {
93-
Response response = client.post(flightOrdersUrl, body);
93+
Response response = client.post(FlightOrdersUrl, body);
9494
return (FlightOrder) Resource.fromObject(response, FlightOrder.class);
9595
}
9696

@@ -107,7 +107,7 @@ public FlightOrder post(JsonObject body) throws ResponseException {
107107
* @throws ResponseException when an exception occurs
108108
*/
109109
public FlightOrder post(String body) throws ResponseException {
110-
Response response = client.post(flightOrdersUrl, body);
110+
Response response = client.post(FlightOrdersUrl, body);
111111
return (FlightOrder) Resource.fromObject(response, FlightOrder.class);
112112
}
113113

@@ -141,7 +141,7 @@ public FlightOrder post(FlightOfferSearch[] flightOffersSearches,
141141
JsonObject jsonObject = new JsonObject();
142142
jsonObject.add("data", typeObject);
143143

144-
Response response = client.post(flightOrdersUrl, jsonObject);
144+
Response response = client.post(FlightOrdersUrl, jsonObject);
145145
return (FlightOrder) Resource.fromObject(response, FlightOrder.class);
146146
}
147147

@@ -195,7 +195,7 @@ public FlightOrder post(FlightPrice flightPrice,
195195
JsonObject jsonObject = new JsonObject();
196196
jsonObject.add("data", typeObject);
197197

198-
Response response = client.post(flightOrdersUrl, jsonObject);
198+
Response response = client.post(FlightOrdersUrl, jsonObject);
199199
return (FlightOrder) Resource.fromObject(response, FlightOrder.class);
200200
}
201201

0 commit comments

Comments
 (0)