@@ -471,6 +471,7 @@ ZonedDateTime toTimestamp(String value) {
471471 throw new IllegalArgumentException ("Value is not a valid timestamp: " + value );
472472 }
473473
474+ // visible for testing
474475 String toMACAddress (String v ) throws IllegalArgumentException {
475476 // Insert separators if necessary
476477 String macWithSeparators = insertMACSeparators (v );
@@ -483,6 +484,7 @@ String toMACAddress(String v) throws IllegalArgumentException {
483484 return macWithSeparators ;
484485 }
485486
487+ // visible for testing
486488 String toIP (String v ) {
487489 InetAddress address ;
488490 try {
@@ -532,23 +534,23 @@ private static String desanitizeExtensionVal(String value) {
532534 return desanitized ;
533535 }
534536
535- public static class CEFEvent implements AutoCloseable {
537+ static class CEFEvent implements AutoCloseable {
536538 private Map <String , Object > rootMappings = new HashMap <>();
537539 private Map <String , Object > cefMappings = new HashMap <>();
538540
539- public void addRootMapping (String key , Object value ) {
541+ void addRootMapping (String key , Object value ) {
540542 this .rootMappings .put (key , value );
541543 }
542544
543- public void addCefMapping (String key , Object value ) {
545+ void addCefMapping (String key , Object value ) {
544546 this .cefMappings .put (key , value );
545547 }
546548
547- public Map <String , Object > getRootMappings () {
549+ Map <String , Object > getRootMappings () {
548550 return Objects .requireNonNull (rootMappings );
549551 }
550552
551- public Map <String , Object > getCefMappings () {
553+ Map <String , Object > getCefMappings () {
552554 return Objects .requireNonNull (cefMappings );
553555 }
554556
0 commit comments