summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-03-16 00:36:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-16 00:36:54 +0000
commitbb58a9d326e0806b726626d991405707b568b797 (patch)
tree31b05e332ca3b1c22f4f55e1b7c0471791b529b6
parent13a5e6fdd8f71f3ad479d6b02fb4833d2f766050 (diff)
parentc3f0f9743dfb741703bf7d5d4df5fc4fda2858b2 (diff)
downloadAdServices-bb58a9d326e0806b726626d991405707b568b797.tar.gz
Merge "Precondition error string should be a compile time constant" into main
-rw-r--r--adservices/framework/java/android/adservices/adselection/ReportEventRequest.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/adservices/framework/java/android/adservices/adselection/ReportEventRequest.java b/adservices/framework/java/android/adservices/adselection/ReportEventRequest.java
index 1f0a0ca90..6581ab14f 100644
--- a/adservices/framework/java/android/adservices/adselection/ReportEventRequest.java
+++ b/adservices/framework/java/android/adservices/adselection/ReportEventRequest.java
@@ -48,10 +48,7 @@ public class ReportEventRequest {
public static final long REPORT_EVENT_MAX_INTERACTION_DATA_SIZE_B = 64 * 1024; // 64 KB
private static final String EVENT_DATA_SIZE_MAX_EXCEEDED =
- String.format(
- Locale.ENGLISH,
- "Event data should not exceed %d bytes",
- REPORT_EVENT_MAX_INTERACTION_DATA_SIZE_B);
+ "Event data should not exceed " + REPORT_EVENT_MAX_INTERACTION_DATA_SIZE_B + " bytes";
private final long mAdSelectionId;
@NonNull private final String mEventKey;