From 6e62c3d64ef3d55f68e56ea7fb8974daab8b9b01 Mon Sep 17 00:00:00 2001 From: charitha Date: Mon, 30 Oct 2017 10:14:00 +0530 Subject: [PATCH] Refactor after merging --- .../carbon/device/mgt/core/search/util/Utils.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/search/util/Utils.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/search/util/Utils.java index ce3db26cee9..ea466351162 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/search/util/Utils.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/test/java/org/wso2/carbon/device/mgt/core/search/util/Utils.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -20,18 +20,11 @@ package org.wso2.carbon.device.mgt.core.search.util; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.device.details.DeviceInfo; import org.wso2.carbon.device.mgt.common.device.details.DeviceLocation; -import org.wso2.carbon.device.mgt.common.search.Condition; -import org.wso2.carbon.device.mgt.common.search.SearchContext; import org.wso2.carbon.device.mgt.core.common.TestDataHolder; -import java.util.ArrayList; import java.util.HashMap; -import java.util.List; import java.util.Map; -import static org.wso2.carbon.device.mgt.common.search.Condition.State.AND; -import static org.wso2.carbon.device.mgt.common.search.Condition.State.OR; - public class Utils { public static DeviceInfo getDeviceInfo() { @@ -75,7 +68,7 @@ public class Utils { } - public static DeviceLocation getSampleDeviceLocation(){ + private static DeviceLocation getSampleDeviceLocation(){ DeviceLocation deviceLocation = new DeviceLocation(); deviceLocation.setDeviceIdentifier(Utils.getDeviceIdentifier()); deviceLocation.setLatitude(76.2422);