File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
src/main/java/com/amadeus Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
package com .amadeus ;
2
2
3
3
import java .util .ArrayList ;
4
+ import java .util .Arrays ;
4
5
import java .util .List ;
5
6
6
7
/**
@@ -43,16 +44,14 @@ public final class Constants {
43
44
public static final String EXPIRES_IN = "expires_in" ;
44
45
45
46
// APIs which need an X-HTTP-Method-Override GET HEADER
46
- public static final List <String > APIS_WITH_EXTRA_HEADER = new ArrayList <String >() {
47
- {
48
- add ("/v2/shopping/flight-offers" );
49
- add ("/v1/shopping/seatmaps" );
50
- add ("/v1/shopping/availability/flight-availabilities" );
51
- add ("/v2/shopping/flight-offers/prediction" );
52
- add ("/v1/shopping/flight-offers/pricing" );
53
- add ("/v1/shopping/flight-offers/upselling" );
54
- }
55
- };
47
+ public static final List <String > APIS_WITH_EXTRA_HEADER = new ArrayList <String >(Arrays .asList (
48
+ "/v2/shopping/flight-offers" ,
49
+ "/v2/shopping/flight-offers" ,
50
+ "/v1/shopping/seatmaps" ,
51
+ "/v1/shopping/availability/flight-availabilities" ,
52
+ "/v2/shopping/flight-offers/prediction" ,
53
+ "/v1/shopping/flight-offers/pricing" ,
54
+ "/v1/shopping/flight-offers/upselling" ));
56
55
57
56
/**
58
57
* The caller references the constants using <tt>Consts.EMPTY_STRING</tt>,
You can’t perform that action at this time.
0 commit comments