Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Sep 18, 2020

Summary

removes unnecessary imports.

Generated code differences

microsoftgraph/msgraph-sdk-java#482

@baywet baywet self-assigned this Sep 18, 2020
import com.google.gson.JsonElement;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
<# if(((OdcmClass)c).IsOpen && !((OdcmClass)c).Properties.Any()) { #>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Looks like this is needed for AdditionalData. Consider leaving a comment on the relation between the import of HashMap and the condition.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not for additional data but for open type with no properties (that are effectively hashmaps), things like PlannerChecklistItems for instance

@baywet baywet merged commit 36b766d into dev Sep 18, 2020
@baywet baywet deleted the feature/hashmap-import-java-removal branch September 18, 2020 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants