Method
removeEldestEntry
(Map.Entry<String, Pattern> eldest)
Source from the content-addressed store, hash-verified
| 8480 | if (matchPatterns == null) { |
| 8481 | matchPatterns = new LinkedHashMap<>(16, 0.75f, true) { |
| 8482 | @Override |
| 8483 | protected boolean removeEldestEntry(Map.Entry<String, Pattern> eldest) { |
| 8484 | // Limit the number of match patterns at 10 most recently used |
| 8485 | return size() == 10; |
| 8486 | } |
| 8487 | }; |
| 8488 | } else { |
| 8489 | p = matchPatterns.get(regexp); |
Callers
nothing calls this directly
Tested by
no test coverage detected