Skip to content

Commit 3057444

Browse files
committed
refac:avoiding of have default value for useSubdomains and isDataResidency flags
1 parent 52dfa30 commit 3057444

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Adjust/example-app-java/src/main/java/com/adjust/examples/GlobalApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ public void onFinishedEventTrackingSucceeded(AdjustEventSuccess eventSuccessResp
6565
}
6666
});
6767

68+
69+
// Set url strategy
6870
// List<String> urlStrategy = new ArrayList<>();
6971
// urlStrategy.add("adjust.com");
7072
// urlStrategy.add("adjust.cn");
7173
// urlStrategy.add("eu.adjust.com");
72-
//
7374
// config.setUrlStrategy(urlStrategy , true, false);
7475

7576
// Set event failure tracking delegate.

Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ public void setUrlStrategy(List<String> domains, Boolean useSubdomains ,Boolean
165165
return;
166166
}
167167
if (useSubdomains == null) {
168-
useSubdomains = false;
168+
logger.error("useSubdomains cannot be null");
169+
return;
169170
}
170171
if (isDataResidency == null) {
171-
isDataResidency = false;
172+
logger.error("isDataResidency cannot be null");
173+
return;
172174
}
173175
this.urlStrategy = domains;
174176
this.useSubdomains = useSubdomains;

0 commit comments

Comments
 (0)