mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add default case in CategorizedSubscriptionResult constructor
This commit is contained in:
commit
22cbc529f6
@ -18,6 +18,7 @@
|
||||
|
||||
package io.entgra.device.mgt.core.application.mgt.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class CategorizedSubscriptionResult {
|
||||
@ -77,6 +78,13 @@ public class CategorizedSubscriptionResult {
|
||||
case "SUBSCRIBED":
|
||||
this.subscribedDevices = devices;
|
||||
break;
|
||||
default:
|
||||
this.installedDevices = new ArrayList<>();
|
||||
this.pendingDevices = new ArrayList<>();
|
||||
this.errorDevices = new ArrayList<>();
|
||||
this.newDevices = new ArrayList<>();
|
||||
this.subscribedDevices = new ArrayList<>();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user