2222
2323package com .microsoft .graph .http ;
2424
25+ import com .microsoft .graph .core .BaseClient ;
26+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
2527import okhttp3 .HttpUrl ;
2628import okhttp3 .HttpUrl .Builder ;
2729
@@ -264,6 +266,7 @@ public HttpMethod getHttpMethod() {
264266 */
265267 @ Override
266268 @ Nullable
269+ @ SuppressFBWarnings
267270 public List <HeaderOption > getHeaders () {
268271 return headersOptions ;
269272 }
@@ -338,6 +341,7 @@ protected <T1> T send(@Nullable final HttpMethod method,
338341 * @return the query options for this request
339342 */
340343 @ Nullable
344+ @ SuppressFBWarnings
341345 public List <QueryOption > getQueryOptions () {
342346 return queryOptions ;
343347 }
@@ -348,6 +352,7 @@ public List<QueryOption> getQueryOptions() {
348352 * @return the function options for this request
349353 */
350354 @ Nullable
355+ @ SuppressFBWarnings
351356 public List <FunctionOption > getFunctionOptions () {
352357 return functionOptions ;
353358 }
@@ -373,7 +378,7 @@ public List<Option> getOptions() {
373378 */
374379 public void addQueryOption (@ Nonnull final QueryOption option ) {
375380 Objects .requireNonNull (option , "parameter option cannot be null" );
376- getQueryOptions () .add (option );
381+ queryOptions .add (option );
377382 }
378383
379384 /**
@@ -383,7 +388,7 @@ public void addQueryOption(@Nonnull final QueryOption option) {
383388 */
384389 public void addFunctionOption (@ Nonnull final FunctionOption option ) {
385390 Objects .requireNonNull (option , "parameter option cannot be null" );
386- getFunctionOptions () .add (option );
391+ functionOptions .add (option );
387392 }
388393
389394 /**
@@ -490,8 +495,9 @@ public IHttpRequest withHttpMethod(@Nonnull final HttpMethod httpMethod) {
490495 * @return the client
491496 */
492497 @ Nonnull
498+ @ SuppressFBWarnings
493499 public IBaseClient <?> getClient () {
494- return client ;
500+ return this . client ;
495501 }
496502
497503 /**
@@ -500,6 +506,7 @@ public IBaseClient<?> getClient() {
500506 * @return the response type
501507 */
502508 @ Nullable
509+ @ SuppressFBWarnings
503510 public Class <? extends T > getResponseType () {
504511 return responseClass ;
505512 }
0 commit comments