Skip to content

Commit 4860c0a

Browse files
committed
Partial GrapServiceException suppress
1 parent fef5590 commit 4860c0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public int getResponseCode() {
203203
*/
204204
@Nonnull
205205
public List<String> getResponseHeaders() {
206-
return responseHeaders;
206+
return Collections.unmodifiableList(responseHeaders);
207207
}
208208

209209
/**
@@ -212,7 +212,7 @@ public List<String> getResponseHeaders() {
212212
*/
213213
@Nullable
214214
public GraphErrorResponse getError() {
215-
return error;
215+
return error; //Copy
216216
}
217217

218218
/**
@@ -239,7 +239,7 @@ public String getUrl() {
239239
*/
240240
@Nonnull
241241
public List<String> getRequestHeaders() {
242-
return requestHeaders;
242+
return Collections.unmodifiableList(requestHeaders);
243243
}
244244

245245
/**

0 commit comments

Comments
 (0)