File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/main/java/com/amadeus Expand file tree Collapse file tree 1 file changed +8
-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
/**
@@ -38,16 +39,13 @@ public final class Constants {
38
39
public static final String EXPIRES_IN = "expires_in" ;
39
40
40
41
// APIs which need an X-HTTP-Method-Override GET HEADER
41
- public static final List <String > APIS_WITH_EXTRA_HEADER = new ArrayList <String >() {
42
- {
43
- add ("/v2/shopping/flight-offers" );
44
- add ("/v1/shopping/seatmaps" );
45
- add ("/v1/shopping/availability/flight-availabilities" );
46
- add ("/v2/shopping/flight-offers/prediction" );
47
- add ("/v1/shopping/flight-offers/pricing" );
48
- add ("/v1/shopping/flight-offers/upselling" );
49
- }
50
- };
42
+ protected static final List <String > APIS_WITH_EXTRA_HEADER = new ArrayList <String >(Arrays .asList (
43
+ "/v2/shopping/flight-offers" ,
44
+ "/v1/shopping/seatmaps" ,
45
+ "/v1/shopping/availability/flight-availabilities" ,
46
+ "/v2/shopping/flight-offers/prediction" ,
47
+ "/v1/shopping/flight-offers/pricing" ,
48
+ "/v1/shopping/flight-offers/upselling" ));
51
49
52
50
/**
53
51
* The caller references the constants using <tt>Consts.EMPTY_STRING</tt>,
You can’t perform that action at this time.
0 commit comments