@@ -14,7 +14,7 @@ public class Sanitizer {
1414 * @param enforceSanitization Flag to control whether sanitization is enforced.
1515 * @return true if initialization was successful, false otherwise.
1616 */
17- private static native boolean nativeInitialize (long loggerNativePtr , String notificationEventName , boolean enforceSanitization );
17+ private static native boolean nativeInitialize (long loggerNativePtr , String notificationEventName , boolean enforceSanitization , int sanitizerConfigurationOverrides );
1818
1919 /**
2020 * Initializes the sanitizer with the provided configuration.
@@ -23,36 +23,6 @@ public class Sanitizer {
2323 * @return true if initialization succeeds, false otherwise.
2424 * @throws IllegalArgumentException if config or any required field is null or invalid.
2525 */
26- public static boolean initialize (SanitizerConfiguration config ) {
27-
28- // Validate that the configuration object is not null
29- if (config == null ) {
30- throw new IllegalArgumentException ("initConfig cannot be null" );
31- }
32-
33- // Ensure the logger instance is provided
34- if (config .getLogger () == null ) {
35- throw new IllegalArgumentException (("loggerInstance cannot be null in config." ));
36- }
37-
38- // Ensure the notification event name is not null or empty
39- if (config .getNotificationEventName () == null || config .getNotificationEventName ().isEmpty ()) {
40- throw new IllegalArgumentException (("notificationEventName cannot be null in config." ));
41- }
42-
43- return nativeInitialize (
44- config .getLogger ().getNativeILoggerPtr (),
45- config .getNotificationEventName (),
46- config .isEnforceSanitization ());
47- }
48-
49- /**
50- * Initializes the sanitizer with the provided configuration.
51- *
52- * @param config The configuration settings used to initialize a sanitizer.
53- * @return true if initialization succeeds, false otherwise.
54- * @throws IllegalArgumentException if config or any required field is null or invalid.
55- */
5626 public static boolean initialize (SanitizerConfiguration config , int sanitizerConfigurationOverrides ) {
5727
5828 // Validate that the configuration object is not null
0 commit comments