@@ -206,8 +206,8 @@ public class Configuration implements Cloneable {
206206 * {@code NettyAsyncHttpClientProvider}, to disambiguate multiple providers with the same name but from different
207207 * packages.
208208 * <p>
209- * If the value isn't set or is an empty string the first {@link HttpClientProvider} found on the class path will
210- * be used to create an instance of {@link HttpClient}. If the value is set and doesn't match any
209+ * If the value isn't set or is an empty string the first {@link HttpClientProvider} found on the class path will be
210+ * used to create an instance of {@link HttpClient}. If the value is set and doesn't match any
211211 * {@link HttpClientProvider} found on the class path an {@link IllegalStateException} will be thrown when
212212 * attempting to create an instance of {@link HttpClient}.
213213 */
@@ -235,38 +235,43 @@ public class Configuration implements Cloneable {
235235 /**
236236 * Constructs a configuration containing the known Azure properties constants.
237237 *
238- * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} that allow to
239- * provide all properties before creating configuration and keep it immutable.
238+ * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} that allow to provide all properties
239+ * before creating configuration and keep it immutable.
240240 */
241241 @ Deprecated
242242 public Configuration () {
243243 this (Collections .emptyMap (), EnvironmentConfiguration .getGlobalConfiguration (), null , null );
244244 }
245245
246246 /**
247- * Constructs a configuration containing the known Azure properties constants. Use {@link ConfigurationBuilder} to create instance of {@link Configuration}.
247+ * Constructs a configuration containing the known Azure properties constants. Use {@link ConfigurationBuilder} to
248+ * create instance of {@link Configuration}.
248249 *
249250 * @param configurationSource Configuration property source.
250251 * @param environmentConfiguration instance of {@link EnvironmentConfiguration} to mock environment for testing.
251252 * @param path Absolute path of current configuration section for logging and diagnostics purposes.
252253 * @param sharedConfiguration Instance of shared {@link Configuration} section to retrieve shared properties.
253254 */
254- Configuration (ConfigurationSource configurationSource , EnvironmentConfiguration environmentConfiguration , String path , Configuration sharedConfiguration ) {
255+ Configuration (ConfigurationSource configurationSource , EnvironmentConfiguration environmentConfiguration ,
256+ String path , Configuration sharedConfiguration ) {
255257 this (readConfigurations (configurationSource , path ), environmentConfiguration , path , sharedConfiguration );
256258 }
257259
258260 /**
259- * Constructs a configuration containing the known Azure properties constants. Use {@link ConfigurationBuilder} to create instance of {@link Configuration}.
261+ * Constructs a configuration containing the known Azure properties constants. Use {@link ConfigurationBuilder} to
262+ * create instance of {@link Configuration}.
260263 *
261264 * @param configurations map of all properties.
262265 * @param environmentConfiguration instance of {@link EnvironmentConfiguration} to mock environment for testing.
263266 * @param path Absolute path of current configuration section for logging and diagnostics purposes.
264267 * @param sharedConfiguration Instance of shared {@link Configuration} section to retrieve shared properties.
265268 */
266- private Configuration (Map <String , String > configurations , EnvironmentConfiguration environmentConfiguration , String path , Configuration sharedConfiguration ) {
269+ private Configuration (Map <String , String > configurations , EnvironmentConfiguration environmentConfiguration ,
270+ String path , Configuration sharedConfiguration ) {
267271 this .configurations = configurations ;
268272 this .isEmpty = configurations .isEmpty ();
269- this .environmentConfiguration = Objects .requireNonNull (environmentConfiguration , "'environmentConfiguration' cannot be null" );
273+ this .environmentConfiguration = Objects .requireNonNull (environmentConfiguration ,
274+ "'environmentConfiguration' cannot be null" );
270275 this .path = path ;
271276 this .sharedConfiguration = sharedConfiguration ;
272277 }
@@ -299,8 +304,8 @@ public String get(String name) {
299304 * Gets the value of system property or environment variable converted to given primitive {@code T} using
300305 * corresponding {@code parse} method on this type.
301306 *
302- * Use {@link Configuration#get(ConfigurationProperty)} overload to get explicit configuration or
303- * environment configuration from specific source.
307+ * Use {@link Configuration#get(ConfigurationProperty)} overload to get explicit configuration or environment
308+ * configuration from specific source.
304309 *
305310 * <p>
306311 * This method first checks the values previously loaded from the environment, if the configuration is found there
@@ -354,9 +359,8 @@ public <T> T get(String name, Function<String, T> converter) {
354359 * @param name Name of the configuration.
355360 * @param value Value of the configuration.
356361 * @return The updated Configuration object.
357- *
358- * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} to
359- * provide all properties before creating configuration.
362+ * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} to provide all properties before
363+ * creating configuration.
360364 */
361365 @ Deprecated
362366 public Configuration put (String name , String value ) {
@@ -371,9 +375,8 @@ public Configuration put(String name, String value) {
371375 *
372376 * @param name Name of the configuration.
373377 * @return The configuration if it previously existed, otherwise null.
374- *
375- * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} to
376- * provide all properties before creating configuration.
378+ * @deprecated Use {@link ConfigurationBuilder} and {@link ConfigurationSource} to provide all properties before
379+ * creating configuration.
377380 */
378381 @ Deprecated
379382 public String remove (String name ) {
@@ -382,9 +385,9 @@ public String remove(String name) {
382385
383386 /**
384387 * Determines if the system property or environment variable is defined.
385- *
386- * Use {@link Configuration#contains(ConfigurationProperty)} overload to get explicit configuration or
387- * environment configuration from specific source.
388+ * <p>
389+ * Use {@link Configuration#contains(ConfigurationProperty)} overload to get explicit configuration or environment
390+ * configuration from specific source.
388391 *
389392 * <p>
390393 * This only checks against values previously loaded into the Configuration object, this won't inspect the
@@ -406,12 +409,14 @@ public boolean contains(String name) {
406409 @ SuppressWarnings ("CloneDoesntCallSuperClone" )
407410 @ Deprecated
408411 public Configuration clone () {
409- return new Configuration (configurations , new EnvironmentConfiguration (environmentConfiguration ), path , sharedConfiguration );
412+ return new Configuration (configurations , new EnvironmentConfiguration (environmentConfiguration ), path ,
413+ sharedConfiguration );
410414 }
411415
412416 /**
413- * Checks if configuration contains the property. If property can be shared between clients, checks this {@code Configuration} and
414- * falls back to shared section. If property has aliases, system property or environment variable defined, checks them as well.
417+ * Checks if configuration contains the property. If property can be shared between clients, checks this
418+ * {@code Configuration} and falls back to shared section. If property has aliases, system property or environment
419+ * variable defined, checks them as well.
415420 * <p>
416421 * Value is not validated.
417422 *
@@ -454,7 +459,7 @@ public boolean contains(ConfigurationProperty<?> property) {
454459 *
455460 * @param property instance.
456461 * @param <T> Type that the configuration is converted to if found.
457- * @return true if property is available, false otherwise.
462+ * @return The value of the property if it exists, otherwise the default value of the property .
458463 * @throws NullPointerException when property instance is null.
459464 * @throws IllegalArgumentException when required property is missing.
460465 * @throws RuntimeException when property value conversion (and validation) throws.
@@ -595,8 +600,8 @@ private static Map<String, String> readConfigurations(ConfigurationSource source
595600 }
596601
597602 /**
598- * Attempts to convert the configuration value to given primitive {@code T} using
599- * corresponding {@code parse} method on this type.
603+ * Attempts to convert the configuration value to given primitive {@code T} using corresponding {@code parse} method
604+ * on this type.
600605 *
601606 * <p><b>Following types are supported:</b></p>
602607 * <ul>
0 commit comments