4444
4545/**
4646 * A client that communications with an OData service
47- * @param <NativeRequestType > type of a request for the native http client
47+ * @param <nativeRequestType > type of a request for the native http client
4848 */
49- public class BaseClient <NativeRequestType > implements IBaseClient <NativeRequestType > {
49+ public class BaseClient <nativeRequestType > implements IBaseClient <nativeRequestType > {
5050 /**
5151 * Restricted constructor
5252 */
@@ -140,11 +140,11 @@ public static <nativeClient, nativeRequest> Builder<nativeClient, nativeRequest>
140140 /**
141141 * Builder to help configure the Graph service client
142142 * @param <httpClientType> type of the native http library client
143- * @param <NativeRequestType > type of a request for the native http client
143+ * @param <nativeRequestType > type of a request for the native http client
144144 */
145- public static class Builder <httpClientType , NativeRequestType > {
145+ public static class Builder <httpClientType , nativeRequestType > {
146146 private ISerializer serializer ;
147- private IHttpProvider <NativeRequestType > httpProvider ;
147+ private IHttpProvider <nativeRequestType > httpProvider ;
148148 private ILogger logger ;
149149 private httpClientType httpClient ;
150150 private IAuthenticationProvider auth ;
@@ -179,9 +179,9 @@ private httpClientType getHttpClient() {
179179 }
180180 }
181181 @ SuppressWarnings ("unchecked" )
182- private IHttpProvider <NativeRequestType > getHttpProvider () {
182+ private IHttpProvider <nativeRequestType > getHttpProvider () {
183183 if (httpProvider == null ) {
184- return (IHttpProvider <NativeRequestType >)new CoreHttpProvider (getSerializer (), getLogger (), (OkHttpClient )getHttpClient ());
184+ return (IHttpProvider <nativeRequestType >)new CoreHttpProvider (getSerializer (), getLogger (), (OkHttpClient )getHttpClient ());
185185 } else {
186186 return httpProvider ;
187187 }
@@ -195,7 +195,7 @@ private IHttpProvider<NativeRequestType> getHttpProvider() {
195195 * @return the instance of this builder
196196 */
197197 @ Nonnull
198- public Builder <httpClientType , NativeRequestType > serializer (@ Nonnull final ISerializer serializer ) {
198+ public Builder <httpClientType , nativeRequestType > serializer (@ Nonnull final ISerializer serializer ) {
199199 checkNotNull (serializer , "serializer" );
200200 this .serializer = serializer ;
201201 return this ;
@@ -209,7 +209,7 @@ public Builder<httpClientType, NativeRequestType> serializer(@Nonnull final ISer
209209 * @return the instance of this builder
210210 */
211211 @ Nonnull
212- public Builder <httpClientType , NativeRequestType > httpProvider (@ Nonnull final IHttpProvider <NativeRequestType > httpProvider ) {
212+ public Builder <httpClientType , nativeRequestType > httpProvider (@ Nonnull final IHttpProvider <nativeRequestType > httpProvider ) {
213213 checkNotNull (httpProvider , "httpProvider" );
214214 this .httpProvider = httpProvider ;
215215 return this ;
@@ -223,7 +223,7 @@ public Builder<httpClientType, NativeRequestType> httpProvider(@Nonnull final IH
223223 * @return the instance of this builder
224224 */
225225 @ Nonnull
226- public Builder <httpClientType , NativeRequestType > logger (@ Nonnull final ILogger logger ) {
226+ public Builder <httpClientType , nativeRequestType > logger (@ Nonnull final ILogger logger ) {
227227 checkNotNull (logger , "logger" );
228228 this .logger = logger ;
229229 return this ;
@@ -237,7 +237,7 @@ public Builder<httpClientType, NativeRequestType> logger(@Nonnull final ILogger
237237 * @return the instance of this builder
238238 */
239239 @ Nonnull
240- public Builder <httpClientType , NativeRequestType > httpClient (@ Nonnull final httpClientType client ) {
240+ public Builder <httpClientType , nativeRequestType > httpClient (@ Nonnull final httpClientType client ) {
241241 checkNotNull (client , "client" );
242242 this .httpClient = client ;
243243 return this ;
@@ -250,7 +250,7 @@ public Builder<httpClientType, NativeRequestType> httpClient(@Nonnull final http
250250 * @return the instance of this builder
251251 */
252252 @ Nonnull
253- public Builder <httpClientType , NativeRequestType > authenticationProvider (@ Nonnull final IAuthenticationProvider auth ) {
253+ public Builder <httpClientType , nativeRequestType > authenticationProvider (@ Nonnull final IAuthenticationProvider auth ) {
254254 checkNotNull (auth , "auth" );
255255 this .auth = auth ;
256256 return this ;
@@ -266,7 +266,7 @@ public Builder<httpClientType, NativeRequestType> authenticationProvider(@Nonnul
266266 * if there was an exception creating the client
267267 */
268268 @ Nonnull
269- protected <ClientType extends BaseClient <NativeRequestType >> ClientType buildClient (@ Nonnull ClientType instance ) throws ClientException {
269+ protected <ClientType extends BaseClient <nativeRequestType >> ClientType buildClient (@ Nonnull ClientType instance ) throws ClientException {
270270 Objects .requireNonNull (instance , "The instance cannot be null" );
271271 instance .setHttpProvider (this .getHttpProvider ());
272272 instance .setLogger (this .getLogger ());
@@ -282,7 +282,7 @@ protected <ClientType extends BaseClient<NativeRequestType>> ClientType buildCli
282282 * if there was an exception creating the client
283283 */
284284 @ Nonnull
285- public IBaseClient <NativeRequestType > buildClient () throws ClientException {
285+ public IBaseClient <nativeRequestType > buildClient () throws ClientException {
286286 return buildClient (new BaseClient <>());
287287 }
288288 }
@@ -302,7 +302,7 @@ protected static void checkNotNull(@Nullable final Object o, @Nonnull final Stri
302302 /**
303303 * The HTTP provider instance
304304 */
305- private IHttpProvider <NativeRequestType > httpProvider ;
305+ private IHttpProvider <nativeRequestType > httpProvider ;
306306
307307 /**
308308 * The logger
@@ -321,7 +321,7 @@ protected static void checkNotNull(@Nullable final Object o, @Nonnull final Stri
321321 */
322322 @ Override
323323 @ Nullable
324- public IHttpProvider <NativeRequestType > getHttpProvider () {
324+ public IHttpProvider <nativeRequestType > getHttpProvider () {
325325 return httpProvider ;
326326 }
327327
@@ -361,7 +361,7 @@ protected void setLogger(@Nonnull final ILogger logger) {
361361 *
362362 * @param httpProvider The HTTP provider
363363 */
364- protected void setHttpProvider (@ Nonnull final IHttpProvider <NativeRequestType > httpProvider ) {
364+ protected void setHttpProvider (@ Nonnull final IHttpProvider <nativeRequestType > httpProvider ) {
365365 checkNotNull (httpProvider , "httpProvider" );
366366 this .httpProvider = httpProvider ;
367367 }
0 commit comments