Skip to content

Commit 6c414f7

Browse files
author
Anthony Roux
committed
Fix checktyle issues
1 parent a02925b commit 6c414f7

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

src/main/java/com/amadeus/Amadeus.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
* </p>
1010
*
1111
* <pre>
12-
* Amadeus amadeus = Amadeus.builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET").build();
12+
* Amadeus amadeus =
13+
* Amadeus.builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET").build();
1314
* </pre>
1415
*
1516
* <p>
@@ -55,8 +56,7 @@ protected Amadeus(Configuration configuration) {
5556
}
5657

5758
/**
58-
* Creates a builder object that can be used to build an Amadeus
59-
* com.amadeus.client.
59+
* Creates a builder object that can be used to build an Amadeus com.amadeus.client.
6060
*
6161
* <pre>
6262
* Amadeus amadeus = Amadeus.builder("CLIENT_ID", "CLIENT_SECRET").build();
@@ -71,8 +71,8 @@ public static Configuration builder(@NonNull String clientId, @NonNull String cl
7171
}
7272

7373
/**
74-
* Creates a builder object initialized with the environment variables that can
75-
* be used to build an Amadeus API com.amadeus.client.
74+
* Creates a builder object initialized with the environment variables that can be used to build
75+
* an Amadeus API com.amadeus.client.
7676
*
7777
* <pre>
7878
* Amadeus amadeus = Amadeus.builder(System.getenv()).build();

src/main/java/com/amadeus/Configuration.java

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
/**
1111
* <p>
12-
* The configuration for the Amadeus API client. To initialize, use the builder
13-
* as follows:
12+
* The configuration for the Amadeus API client. To initialize, use the builder as follows:
1413
* </p>
1514
*
1615
* <pre>
17-
* Amadeus amadeus = Amadeus.builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET").build();
16+
* Amadeus amadeus =
17+
* Amadeus.builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET").build();
1818
* </pre>
1919
*
2020
* <p>
@@ -28,7 +28,8 @@
2828
@Accessors(chain = true)
2929
@ToString
3030
public class Configuration {
31-
private static final Params HOSTS = Params.with("production", "api.amadeus.com").and("test", "test.api.amadeus.com");
31+
private static final Params HOSTS =
32+
Params.with("production", "api.amadeus.com").and("test", "test.api.amadeus.com");
3233

3334
/**
3435
* The client ID used to authenticate the API calls.
@@ -57,16 +58,15 @@ public class Configuration {
5758
*/
5859
private @Getter @Setter String logLevel = "silent";
5960
/**
60-
* The the name of the server API calls are made to, 'production' or 'test'.
61-
* Defaults to 'test'
61+
* The the name of the server API calls are made to, 'production' or 'test'. Defaults to 'test'
6262
*
6363
* @param hostname The name of the server API calls are made to
6464
* @return The name of the server API calls are made to
6565
*/
6666
private @Getter String hostname = "test";
6767
/**
68-
* The optional custom host domain to use for API calls. Defaults to internal
69-
* value for 'hostname'.
68+
* The optional custom host domain to use for API calls. Defaults to internal value for
69+
* 'hostname'.
7070
*
7171
* @param host The optional custom host domain to use for API calls.
7272
* @return The optional custom host domain to use for API calls.
@@ -80,24 +80,21 @@ public class Configuration {
8080
*/
8181
private @Getter boolean ssl = true;
8282
/**
83-
* The port to use. Defaults to 443 for an SSL connection, and 80 for a non SSL
84-
* connection.
83+
* The port to use. Defaults to 443 for an SSL connection, and 80 for a non SSL connection.
8584
*
8685
* @param port The port to use for the connection
8786
* @return The port to use for the connection
8887
*/
8988
private @Getter @Setter int port = 443;
9089
/**
91-
* An optional custom App ID to be passed in the User Agent to the server
92-
* (Defaults to null).
90+
* An optional custom App ID to be passed in the User Agent to the server (Defaults to null).
9391
*
9492
* @param customAppId An optional custom App ID
9593
* @return The optional custom App ID
9694
*/
9795
private @Getter @Setter String customAppId;
9896
/**
99-
* An optional custom App version to be passed in the User Agent to the server
100-
* (Defaults to null).
97+
* An optional custom App version to be passed in the User Agent to the server (Defaults to null).
10198
*
10299
* @param customAppVersion An optional custom App version
103100
* @return The optional custom App version
@@ -120,8 +117,7 @@ public Amadeus build() throws NullPointerException {
120117
}
121118

122119
/**
123-
* The the name of the server API calls are made to, 'production' or 'test'.
124-
* Defaults to 'test'.
120+
* The the name of the server API calls are made to, 'production' or 'test'. Defaults to 'test'.
125121
*
126122
* @param hostname The name of the server API calls are made to
127123
* @return The name of the server API calls are made to

0 commit comments

Comments
 (0)