Skip to content

Commit fae78ca

Browse files
committed
Comments
1 parent 350d141 commit fae78ca

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ protected String transformErrorCodeCase(@Nonnull final String original) {
8787
return CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, original);
8888
}
8989

90-
//TODO comments
90+
/**
91+
* Makes a deep copy of specified error
92+
* @param error The error we wish to copy
93+
* @return The copy of the specified error
94+
*/
9195
public static final GraphError graphErrorCopy(GraphError error) {
9296
GraphError errorCopy = new GraphError();
9397
errorCopy.message = error.message;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public final AdditionalDataManager additionalDataManager() {
7272
return additionalDataManager;
7373
}
7474

75-
//TODO: Comments
75+
/**
76+
* Make a deep copy the specified GraphErrorResponse object.
77+
* @param response The GraphErrorResponse we want to copy
78+
* @return The copy of the specified GraphErrorResponse
79+
*/
7680
public static GraphErrorResponse getErrorCopy(GraphErrorResponse response)
7781
{
7882
GraphErrorResponse copy = new GraphErrorResponse();

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ public class GraphInnerError {
6161
@Nullable
6262
public GraphInnerError innererror;
6363

64-
//TODO: Comments
64+
/**
65+
* Make a deep copy of the specified GraphInnerError, this includes all it's subsequent InnerError's.
66+
* @param InnerError The InnerError we want to copy.
67+
* @return The copy of the specified InnerError
68+
*/
6569
public static final GraphInnerError graphInnerErrorCopy(GraphInnerError InnerError) {
6670
GraphInnerError innerErrorCopy = new GraphInnerError();
6771
innerErrorCopy.code = InnerError.code;

0 commit comments

Comments
 (0)