2323package com .microsoft .graph .core ;
2424
2525import com .microsoft .graph .authentication .IAuthenticationProvider ;
26+ import com .microsoft .graph .concurrency .DefaultExecutors ;
2627import com .microsoft .graph .concurrency .IExecutors ;
2728import com .microsoft .graph .http .DefaultHttpProvider ;
28- import com .microsoft .graph .logger .DefaultLogger ;
29- import com .microsoft .graph .concurrency .DefaultExecutors ;
3029import com .microsoft .graph .http .IHttpProvider ;
30+ import com .microsoft .graph .logger .DefaultLogger ;
3131import com .microsoft .graph .logger .ILogger ;
3232import com .microsoft .graph .serializer .DefaultSerializer ;
3333import com .microsoft .graph .serializer .ISerializer ;
@@ -64,18 +64,30 @@ public abstract class DefaultClientConfig implements IClientConfig {
6464
6565 /**
6666 * Creates an instance of this config with an auth provider.
67+ *
6768 * @param authenticationProvider The authentication provider.
6869 * @return The IClientConfig.
6970 */
70- public static IClientConfig createWithAuthenticationProvider (final IAuthenticationProvider authenticationProvider ) {
71- DefaultClientConfig config = new DefaultClientConfig () { };
71+ public static IClientConfig createWithAuthenticationProvider (
72+ final IAuthenticationProvider authenticationProvider
73+ ) {
74+ DefaultClientConfig config = new DefaultClientConfig () {
75+ };
7276 config .mAuthenticationProvider = authenticationProvider ;
73- config .getLogger ().logDebug ("Using provided auth provider " + authenticationProvider .getClass ().getSimpleName ());
77+ config
78+ .getLogger ()
79+ .logDebug (
80+ "Using provided auth provider "
81+ + authenticationProvider
82+ .getClass ()
83+ .getSimpleName ()
84+ );
7485 return config ;
7586 }
7687
7788 /**
7889 * Gets the authentication provider.
90+ *
7991 * @return The authentication provider.
8092 */
8193 @ Override
@@ -85,22 +97,24 @@ public IAuthenticationProvider getAuthenticationProvider() {
8597
8698 /**
8799 * Gets the http provider.
100+ *
88101 * @return The http provider.
89102 */
90103 @ Override
91104 public IHttpProvider getHttpProvider () {
92105 if (mHttpProvider == null ) {
93106 mHttpProvider = new DefaultHttpProvider (getSerializer (),
94- getAuthenticationProvider (),
95- getExecutors (),
96- getLogger ());
107+ getAuthenticationProvider (),
108+ getExecutors (),
109+ getLogger ());
97110 mLogger .logDebug ("Created DefaultHttpProvider" );
98111 }
99112 return mHttpProvider ;
100113 }
101114
102115 /**
103116 * Gets the serializer.
117+ *
104118 * @return The serializer.
105119 */
106120 @ Override
@@ -114,6 +128,7 @@ public ISerializer getSerializer() {
114128
115129 /**
116130 * Gets the executors.
131+ *
117132 * @return The executors.
118133 */
119134 @ Override
@@ -127,6 +142,7 @@ public IExecutors getExecutors() {
127142
128143 /**
129144 * Gets the logger.
145+ *
130146 * @return The logger.
131147 */
132148 public ILogger getLogger () {
0 commit comments