@@ -20,15 +20,16 @@ public static class Builder {
20
20
private StringBuilder suffixes = new StringBuilder ();
21
21
private int modifiers = Pattern .MULTILINE ;
22
22
23
- private static final Map <Character , Integer > SYMBOL_MAP = new HashMap <Character , Integer >() {{
24
- put ('d' , Pattern .UNIX_LINES );
25
- put ('i' , Pattern .CASE_INSENSITIVE );
26
- put ('x' , Pattern .COMMENTS );
27
- put ('m' , Pattern .MULTILINE );
28
- put ('s' , Pattern .DOTALL );
29
- put ('u' , Pattern .UNICODE_CASE );
30
- put ('U' , Pattern .UNICODE_CHARACTER_CLASS );
31
- }};
23
+ private static final Map <Character , Integer > SYMBOL_MAP = new HashMap <>();
24
+ static {
25
+ SYMBOL_MAP .put ('d' , Pattern .UNIX_LINES );
26
+ SYMBOL_MAP .put ('i' , Pattern .CASE_INSENSITIVE );
27
+ SYMBOL_MAP .put ('x' , Pattern .COMMENTS );
28
+ SYMBOL_MAP .put ('m' , Pattern .MULTILINE );
29
+ SYMBOL_MAP .put ('s' , Pattern .DOTALL );
30
+ SYMBOL_MAP .put ('u' , Pattern .UNICODE_CASE );
31
+ SYMBOL_MAP .put ('U' , Pattern .UNICODE_CHARACTER_CLASS );
32
+ }
32
33
33
34
/**
34
35
* Package private. Use {@link #regex()} to build a new one
0 commit comments