Fix Search is not working in installation details in app store #451

Merged
tcdlpds merged 3 commits from nipuni/device-mgt-core:#11464 into master 4 months ago
Fixes for: http://roadmap.entgra.net/issues/11464
nipuni added 2 commits 4 months ago
f0fafde0d2
Merge branch 'master' of https://repository.entgra.net/community/device-mgt-core into #11464
nipuni added 1 commit 4 months ago
nipuni changed title from WIP: Fix Search is not working in installation details in app store to Fix Search is not working in installation details in app store 4 months ago
rajitha requested changes 4 months ago
case "SUBSCRIBED":
this.subscribedDevices = devices;
break;
}
Collaborator

What is the default case here?

What is the default case here?
if (subscribedDevices.isEmpty()) {
categorizedSubscriptionResult =
new CategorizedSubscriptionResult(installedDevices, pendingDevices, errorDevices, newDevices);
List<DeviceSubscriptionData> requestedDevices = new ArrayList<>();
Collaborator

Move instantiate to the default case.

Move instantiate to the default case.
if (subscribedDevices.isEmpty()) {
categorizedSubscriptionResult =
new CategorizedSubscriptionResult(installedDevices, pendingDevices, errorDevices, newDevices);
List<DeviceSubscriptionData> requestedDevices = new ArrayList<>();
Collaborator

Move instantiate to the default case.

Move instantiate to the default case.
if (subscribedDevices.isEmpty()) {
categorizedSubscriptionResult =
new CategorizedSubscriptionResult(installedDevices, pendingDevices, errorDevices, newDevices);
List<DeviceSubscriptionData> requestedDevices = new ArrayList<>();
Collaborator

Move instantiate to the default case (Doing so we can reduce the life time of empty array instance through out the switch statement).

Move instantiate to the default case (Doing so we can reduce the life time of empty array instance through out the switch statement).
if (subscribedDevices.isEmpty()) {
categorizedSubscriptionResult =
new CategorizedSubscriptionResult(installedDevices, pendingDevices, errorDevices, newDevices);
List<DeviceSubscriptionData> requestedDevices = new ArrayList<>();
Collaborator

Move instantiate to the default case.

Move instantiate to the default case.
statusPercentages.put(entry.getKey(), Double.valueOf(formattedPercentage));
}
List<DeviceSubscriptionData> requestedDevices = new ArrayList<>();
Collaborator

Move instantiate to the default case.

Move instantiate to the default case.
tcdlpds merged commit 08e9625373 into master 4 months ago

Reviewers

rajitha requested changes 4 months ago
The pull request has been merged as 08e9625373.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

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