@@ -18,15 +18,18 @@ public class Sanitizer {
1818 * 1 = SitePathStrict (enables strict site path analysis)
1919 * 2 = SitePathLoose (enables loose site path analysis)
2020 * Multiple flags can be combined with bitwise OR (e.g., 1 | 2 = 3)
21+ * @param sendConcernLimit Maximum number of concerns to send.
22+ * @param insertWarningAtProblemLocation Insert warnings at problem location (true) or prepend (false).
2123 * @return true if initialization was successful, false otherwise.
2224 */
23- private static native boolean nativeInitialize (long loggerNativePtr ,
25+ private static native boolean nativeInitialize (long loggerNativePtr ,
2426 String notificationEventName ,
25- boolean enforceSanitization ,
26- String [] urlDomains ,
27- String [] emailDomains ,
27+ boolean enforceSanitization ,
28+ String [] urlDomains ,
29+ String [] emailDomains ,
2830 int analyzerOptions ,
29- int sendConcernLimit );
31+ int sendConcernLimit ,
32+ boolean insertWarningAtProblemLocation );
3033 /**
3134 * Initializes the sanitizer with the provided configuration.
3235 *
@@ -60,13 +63,14 @@ public static boolean initialize(SanitizerConfiguration config, String[] urlDoma
6063 }
6164
6265 return nativeInitialize (
63- config .getLogger ().getNativeILoggerPtr (),
66+ config .getLogger ().getNativeILoggerPtr (),
6467 config .getNotificationEventName (),
6568 config .isEnforceSanitization (),
6669 urlDomains ,
6770 emailDomains ,
6871 analyzerOptions ,
69- sendConcernLimit );
72+ sendConcernLimit ,
73+ config .isInsertWarningAtProblemLocation ());
7074 }
7175
7276 /**
0 commit comments