[REFACTORING] Pre-compile ContentLocationFieldImpl REGEX
authorBenoit Tellier <btellier@linagora.com>
Mon, 24 May 2021 11:50:27 +0000 (18:50 +0700)
committerTellier Benoit <btellier@linagora.com>
Tue, 25 May 2021 07:32:08 +0000 (14:32 +0700)
commite5a2caca4d3b5b2694d7156cd42cb8e3f96541c4
treee9c9feeaf0737f48cce98e0391e8f5065ff032e5
parent31018e82be121ee801d51803c1c10b2297692c34
[REFACTORING] Pre-compile ContentLocationFieldImpl REGEX

Using String::replaceAll leads to recompile the regex on each calls.
dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldImpl.java