From 42ce71da2cd67768c6133b873031dff2f4555b60 Mon Sep 17 00:00:00 2001 From: geethkokila Date: Fri, 3 Jun 2016 18:06:33 +0530 Subject: [PATCH] Fixing the spelling mistake --- .../mgt/dao/impl/GenericOperationDAOImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 7089f5dfd12..e049d97178d 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 @@ -355,7 +355,7 @@ public class GenericOperationDAOImpl implements OperationDAO { int operationId = 0; int enrolmentId = 0; - int responceId = 0; + int responseId = 0; Activity activity = null; ActivityStatus activityStatus = null; while (rs.next()) { @@ -383,7 +383,7 @@ public class GenericOperationDAOImpl implements OperationDAO { List operationResponses = new ArrayList<>(); if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) { operationResponses.add(this.getOperationResponse(rs)); - responceId = rs.getInt("OP_RES_ID"); + responseId = rs.getInt("OP_RES_ID"); } activityStatus.setResponses(operationResponses); statusList.add(activityStatus); @@ -409,7 +409,7 @@ public class GenericOperationDAOImpl implements OperationDAO { List operationResponses = new ArrayList<>(); if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) { operationResponses.add(this.getOperationResponse(rs)); - responceId = rs.getInt("OP_RES_ID"); + responseId = rs.getInt("OP_RES_ID"); } activityStatus.setResponses(operationResponses); activity.getActivityStatus().add(activityStatus); @@ -417,10 +417,10 @@ public class GenericOperationDAOImpl implements OperationDAO { enrolmentId = rs.getInt("ENROLMENT_ID"); } - if (rs.getInt("OP_RES_ID") != 0 && responceId != rs.getInt("OP_RES_ID")){ + if (rs.getInt("OP_RES_ID") != 0 && responseId != rs.getInt("OP_RES_ID")){ if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) { activityStatus.getResponses().add(this.getOperationResponse(rs)); - responceId = rs.getInt("OP_RES_ID"); + responseId = rs.getInt("OP_RES_ID"); } } }