From fe22bfc1254c605a17c0c5fba1cbf7ae9795edf0 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Thu, 2 Jun 2016 00:33:14 +0530 Subject: [PATCH] Renaming 'recieved' to 'received' --- .../common/operation/mgt/OperationResponse.java | 14 +++++++------- .../mgt/dao/impl/GenericOperationDAOImpl.java | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java index 5a154e35b7a..5b3e99104f7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java @@ -26,11 +26,11 @@ import io.swagger.annotations.ApiModelProperty; + " responses") public class OperationResponse { - @ApiModelProperty(name = "response", value = "Operation response return from the device", required = true) + @ApiModelProperty(name = "response", value = "Operation response returned from the device", required = true) private String response; - @ApiModelProperty(name = "recievedTimeStamp", value = "Time that the operation response received", + @ApiModelProperty(name = "receivedTimeStamp", value = "Time that the operation response received", required = true) - private String recievedTimeStamp; + private String receivedTimeStamp; public String getResponse() { return response; @@ -40,12 +40,12 @@ public class OperationResponse { this.response = response; } - public String getRecievedTimeStamp() { - return recievedTimeStamp; + public String getReceivedTimeStamp() { + return receivedTimeStamp; } - public void setRecievedTimeStamp(String recievedTimeStamp) { - this.recievedTimeStamp = recievedTimeStamp; + public void setReceivedTimeStamp(String receivedTimeStamp) { + this.receivedTimeStamp = receivedTimeStamp; } } diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/GenericOperationDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/GenericOperationDAOImpl.java index e7fa8bdd629..dd3ea76b0cb 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/GenericOperationDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/GenericOperationDAOImpl.java @@ -207,7 +207,7 @@ public class GenericOperationDAOImpl implements OperationDAO { while (rs.next()) { OperationResponse response = new OperationResponse(); - response.setRecievedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString()); + response.setReceivedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString()); ByteArrayInputStream bais = null; ObjectInputStream ois = null; byte[] contentBytes; @@ -435,7 +435,7 @@ public class GenericOperationDAOImpl implements OperationDAO { ClassNotFoundException, IOException, SQLException { OperationResponse response = new OperationResponse(); if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) { - response.setRecievedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString()); + response.setReceivedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString()); } ByteArrayInputStream bais = null; ObjectInputStream ois = null;