11// ------------------------------------------------------------------------------
22// Copyright (c) 2017 Microsoft Corporation
3- //
3+ //
44// Permission is hereby granted, free of charge, to any person obtaining a copy
55// of this software and associated documentation files (the "Software"), to deal
66// in the Software without restriction, including without limitation the rights
77// to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
88// copies of the Software, and to permit persons to whom the Software is
99// furnished to do so, subject to the following conditions:
10- //
10+ //
1111// The above copyright notice and this permission notice shall be included in
1212// all copies or substantial portions of the Software.
13- //
13+ //
1414// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2222
2323package com .microsoft .graph .http ;
2424
25- import com .google .gson .JsonObject ;
26- import com .microsoft .graph .serializer .AdditionalDataManager ;
27- import com .microsoft .graph .serializer .ISerializer ;
25+ import com .google .gson .JsonElement ;
2826
29- import java .util .Collections ;
3027import java .util .List ;
3128
3229import javax .annotation .Nullable ;
3936 */
4037public class DeltaCollectionPage <T , T2 extends BaseRequestBuilder <T >> extends BaseCollectionPage <T , T2 > {
4138 /**
42- * The opaque link to query delta after the
39+ * The opaque link to query delta after the
4340 * initial request
4441 */
4542 @ Nullable
@@ -53,8 +50,9 @@ public class DeltaCollectionPage<T, T2 extends BaseRequestBuilder<T>> extends Ba
5350 */
5451 public DeltaCollectionPage (@ Nonnull final ICollectionResponse <T > response , @ Nullable final T2 builder ) {
5552 super (response .values (), builder , response .additionalDataManager ());
56- if (response .getRawObject ().get ("@odata.deltaLink" ) != null ) {
57- deltaLink = response .getRawObject ().get ("@odata.deltaLink" ).getAsString ();
53+ final JsonElement deltaLinkRaw = response .additionalDataManager ().get ("@odata.deltaLink" );
54+ if (deltaLinkRaw != null ) {
55+ deltaLink = deltaLinkRaw .getAsString ();
5856 } else {
5957 deltaLink = null ;
6058 }
0 commit comments