Skip to content

Commit 9417ef8

Browse files
committed
Update spotbugs to 5.0.3
1 parent 4860c0a commit 9417ef8

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id 'maven-publish'
1515
id 'signing'
1616
id 'jacoco'
17-
id 'com.github.spotbugs' version '4.8.0'
17+
id 'com.github.spotbugs' version '5.0.3'
1818
id "org.sonarqube" version "3.3"
1919
}
2020

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,15 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
7171
public final AdditionalDataManager additionalDataManager() {
7272
return additionalDataManager;
7373
}
74+
75+
public GraphErrorResponse getCopy()
76+
{
77+
//makeCopy of error
78+
//make copy of additionalData manager
79+
//make copy of raw object
80+
return this;
81+
82+
}
83+
84+
7485
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public List<String> getResponseHeaders() {
212212
*/
213213
@Nullable
214214
public GraphErrorResponse getError() {
215-
return error; //Copy
215+
return error.getCopy(); //Copy the error, deserialize and copy contents TODO
216216
}
217217

218218
/**

0 commit comments

Comments
 (0)