Fix unmodifiable list referencing issue #260

Merged
tcdlpds merged 2 commits from rajitha/device-mgt-core:admin-role-isssue into master 1 year ago
rajitha commented 1 year ago
Collaborator

Purpose

Notes

When getting a reference of a list, it is better to create a new list and assign the target list to the new list. Because returned list can be fixed-size unmodifiable list which is returning from a Arrays.asList() method. Hence performing operations on such list will cause errors.

## Purpose ### Notes When getting a reference of a list, it is better to create a new list and assign the target list to the new list. Because returned list can be fixed-size unmodifiable list which is returning from a Arrays.asList() method. Hence performing operations on such list will cause errors.
rajitha added 1 commit 1 year ago
rajitha added 1 commit 1 year ago
tcdlpds merged commit ae5bcf4f8a into master 1 year ago
The pull request has been merged as ae5bcf4f8a.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: community/device-mgt-core#260
Loading…
There is no content yet.