Azure / azure-notificationhubs-java-backend

Azure Notification Hubs SDK for Java
https://docs.microsoft.com/en-us/azure/notification-hubs/
Apache License 2.0
35 stars 49 forks source link

Adds support for camelCase credential property names #170

Closed zhangeugenia closed 1 year ago

zhangeugenia commented 1 year ago

Description

Updates PnsCredential to invoke the correct setters when credential property names are returned in camelCase instead of PascalCase. When the properties are camelCase, the SDK attempts to invoke setters with a different casing when parsing NotificationHubDescriptions, resulting in various functions (such as getNotificationHub()) crashing.

Also:

Things to consider before you submit the PR:

Related PRs or issues

Reported in Issue #169