Add default case in CategorizedSubscriptionResult constructor.

remotes/1721635363905829615/tmp_refs/heads/master
Nipuni Kavindya 4 months ago
parent 9561e003bf
commit 7496415ab3

@ -18,6 +18,7 @@
package io.entgra.device.mgt.core.application.mgt.common; package io.entgra.device.mgt.core.application.mgt.common;
import java.util.ArrayList;
import java.util.List; import java.util.List;
public class CategorizedSubscriptionResult { public class CategorizedSubscriptionResult {
@ -77,6 +78,13 @@ public class CategorizedSubscriptionResult {
case "SUBSCRIBED": case "SUBSCRIBED":
this.subscribedDevices = devices; this.subscribedDevices = devices;
break; break;
default:
this.installedDevices = new ArrayList<>();
this.pendingDevices = new ArrayList<>();
this.errorDevices = new ArrayList<>();
this.newDevices = new ArrayList<>();
this.subscribedDevices = new ArrayList<>();
break;
} }
} }

Loading…
Cancel
Save