From cd0eaec265792e21382d4e3309b90e25c6d1cce1 Mon Sep 17 00:00:00 2001 From: Deenath Geeganage Date: Tue, 29 Nov 2022 15:35:23 +0530 Subject: [PATCH] fixed comment issues in traccar device update functionality --- .../mgt/core/traccar/api/service/DeviceAPIClientService.java | 2 +- .../mgt/core/traccar/api/service/TraccarClientFactory.java | 2 +- .../traccar/api/service/impl/DeviceAPIClientServiceImpl.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/DeviceAPIClientService.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/DeviceAPIClientService.java index 54c4cd79ef0..4d197857af8 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/DeviceAPIClientService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/DeviceAPIClientService.java @@ -54,7 +54,7 @@ public interface DeviceAPIClientService { * Updates device Traccar configuration records (like device name) * * @params device to be modifies - * @param tenantId of the device + * @param tenantId of the user * @throws TrackerManagementDAOException errors thrown while modifing a traccar device */ void modifyDevice(Device device, int tenantId) throws ExecutionException, InterruptedException; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/TraccarClientFactory.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/TraccarClientFactory.java index 11561208559..276ac775316 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/TraccarClientFactory.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/TraccarClientFactory.java @@ -474,7 +474,7 @@ public class TraccarClientFactory { * * @param traccarDevice with DeviceName UniqueId, Status, Disabled LastUpdate, PositionId, GroupId * Model, Contact, Category, fenceIds - * @param tenantId tentantId of the specific device + * @param tenantId tentantId of the user * @throws TrackerManagementDAOException Failed while add Traccar Device the operation */ public void modifyDevice(TraccarDevice traccarDevice, int tenantId) throws TrackerManagementDAOException, ExecutionException, InterruptedException { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/impl/DeviceAPIClientServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/impl/DeviceAPIClientServiceImpl.java index 9e6c22a6396..5fa6c0e3168 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/impl/DeviceAPIClientServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/impl/DeviceAPIClientServiceImpl.java @@ -68,7 +68,7 @@ public class DeviceAPIClientServiceImpl implements DeviceAPIClientService { try { client.modifyDevice(traccarDevice, tenantId); } catch (TrackerManagementDAOException e) { - log.error("Error occurred while mapping with deviceId\"", e); + log.error("Error occurred while mapping with deviceId", e); } }