Skip to content

Commit 156aaa9

Browse files
committed
Suppress options return methods.
1 parent 5b06b4c commit 156aaa9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/com/microsoft/graph/http/BaseRequest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ public HttpMethod getHttpMethod() {
266266
*/
267267
@Override
268268
@Nullable
269+
@SuppressFBWarnings
269270
public List<HeaderOption> getHeaders() {
270-
return Collections.unmodifiableList(headersOptions);
271+
return headersOptions;
271272
}
272273

273274
/**
@@ -340,8 +341,9 @@ protected <T1> T send(@Nullable final HttpMethod method,
340341
* @return the query options for this request
341342
*/
342343
@Nullable
344+
@SuppressFBWarnings
343345
public List<QueryOption> getQueryOptions() {
344-
return Collections.unmodifiableList(queryOptions);
346+
return queryOptions;
345347
}
346348

347349
/**
@@ -350,8 +352,9 @@ public List<QueryOption> getQueryOptions() {
350352
* @return the function options for this request
351353
*/
352354
@Nullable
355+
@SuppressFBWarnings
353356
public List<FunctionOption> getFunctionOptions() {
354-
return Collections.unmodifiableList(functionOptions);
357+
return functionOptions;
355358
}
356359

357360
/**

0 commit comments

Comments
 (0)