forked from payara/Payara
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mpconfig): Make DirConfigSource.isLongestMatch() more testab…
…le and use less memory This commits make the logic part of isLongestMatch() a static function, much easier to unit test. The lookup part checking if the path is already present somewhere is handled in a non-static function, so staying compatible with using this config source for multiple locations. It also refactored the inner DirProperty class to avoid saving the path depth and compute it instead, reducing the waste of resources. Relates to payara#5006
- Loading branch information
1 parent
f7c2046
commit 784995f
Showing
2 changed files
with
178 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.