Skip to content

Commit 34ab752

Browse files
author
Caitlin Bales (MSFT)
committed
Parameterize HashMap
1 parent 8b7619a commit 34ab752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/microsoft/graph/serializer/DefaultSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ private JsonObject getChildAdditionalData(IJsonBackedObject serializableObject,
128128

129129
// If the object is a HashMap, iterate through its children
130130
if (fieldObject instanceof HashMap) {
131-
HashMap serializableChildren = (HashMap) fieldObject;
131+
HashMap<String, Object> serializableChildren = (HashMap<String, Object>) fieldObject;
132132
Iterator it = serializableChildren.entrySet().iterator();
133133

134134
while (it.hasNext()) {
135-
HashMap.Entry pair = (HashMap.Entry)it.next();
135+
HashMap.Entry<String, Object> pair = (HashMap.Entry<String, Object>)it.next();
136136
Object child = pair.getValue();
137137

138138
// If the item is a valid Graph object, add its additional data

0 commit comments

Comments
 (0)