From 90debc3dd3620b6733cbaf30f0dd791e80c1741c Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray <57103426+arifBurakDemiray@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:49:03 +0000 Subject: [PATCH] fix: rename (#185) --- sdk-java/src/main/java/ly/count/sdk/java/Config.java | 6 +----- .../ly/count/sdk/java/internal/ModuleLocationsTests.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sdk-java/src/main/java/ly/count/sdk/java/Config.java b/sdk-java/src/main/java/ly/count/sdk/java/Config.java index a6428beb..4b5ab81b 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/Config.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/Config.java @@ -1509,11 +1509,7 @@ public Config setLocation(String countryCode, String cityName, String gpsCoordin * * @return {@code this} instance for method chaining */ - public Config setDisableLocation() { - country = null; - city = null; - location = null; - ip = null; + public Config disableLocation() { locationEnabled = false; return this; } diff --git a/sdk-java/src/test/java/ly/count/sdk/java/internal/ModuleLocationsTests.java b/sdk-java/src/test/java/ly/count/sdk/java/internal/ModuleLocationsTests.java index e7ec5b97..41a3fd2c 100644 --- a/sdk-java/src/test/java/ly/count/sdk/java/internal/ModuleLocationsTests.java +++ b/sdk-java/src/test/java/ly/count/sdk/java/internal/ModuleLocationsTests.java @@ -112,7 +112,7 @@ public void setLocation_notBeganSession_withConfig() throws InterruptedException public void disableLocation_notBeganSession_withConfig() { Countly.instance().init(TestUtils.getBaseConfig().setFeatures(Config.Feature.Location, Config.Feature.Sessions) .setLocation("US", "New York", "1,2", "1.1.1.1") - .setDisableLocation()); + .disableLocation()); validateLocationRequestInRQ(UserEditorTests.map("location", ""), 0); Countly.session().begin(); validateLocationRequestInRQ(UserEditorTests.map("location", "", "begin_session", "1"), 1);