mirror of
https://github.com/google/nomulus.git
synced 2025-06-01 18:18:42 +02:00
Prefer re2 over java.util.regex
Java's stock regex implementation doesn't guarantee linear time complexity which makes it a security liability. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121159875
This commit is contained in:
parent
3291eb8b70
commit
6082146d55
42 changed files with 64 additions and 39 deletions
|
@ -21,6 +21,8 @@ import static google.registry.xjc.XjcXmlTransformer.unmarshal;
|
|||
import static java.nio.charset.StandardCharsets.UTF_16;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.google.re2j.Pattern;
|
||||
|
||||
import google.registry.testing.ExceptionRule;
|
||||
import google.registry.xjc.rde.XjcRdeDeposit;
|
||||
import google.registry.xjc.rde.XjcRdeDepositTypeType;
|
||||
|
@ -33,7 +35,6 @@ import org.junit.runners.JUnit4;
|
|||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** Unit tests for {@code XjcObject}. */
|
||||
@RunWith(JUnit4.class)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue