From 84bc22f9f306544f3e73dec90c3db83ea4fdc145 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Thu, 30 Jul 2015 16:56:45 +0530 Subject: [PATCH] Setting default values for fields validFrom and validTo --- .../wso2/carbon/device/mgt/common/license/mgt/License.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/license/mgt/License.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/license/mgt/License.java index 7044eb4916..d41a64ab82 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/license/mgt/License.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/license/mgt/License.java @@ -35,6 +35,11 @@ public class License { private Date validTo; private String text; + public License() { + this.validFrom = new Date(); + this.validFrom = new Date(); + } + @XmlElement(name = "Provider", required = true) public String getProvider() { return provider;