static Pattern createIncludedFilesPattern ( ) { String messagesFilesRegex = LocaleUtils . createResourceFilesRegex ( Constant . MESSAGES_PREFIX , Constant . MESSAGES_EXTENSION ) ; String vulnerabilitiesFilesRegex = LocaleUtils . createResourceFilesRegex ( Constant . VULNERABILITIES_PREFIX , Constant . VULNERABILITIES_EXTENSION ) ; StringBuilder strBuilder = new StringBuilder ( messagesFilesRegex . length ( ) + vulnerabilitiesFilesRegex . length ( ) + 1 ) ; strBuilder . append ( messagesFilesRegex ) . append ( ' ' ) . append ( vulnerabilitiesFilesRegex ) ; return Pattern . compile ( strBuilder . toString ( ) ) ; }
Relaxed visibility to allow unit test