Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUB-214 Support multi port or global(applies to all ports) preprocessor rules #503

Merged
merged 4 commits into from
Feb 24, 2020

Conversation

akodali18
Copy link
Contributor

@akodali18 akodali18 commented Feb 24, 2020

Addresses #245

Copy link
Contributor

@basilisk487 basilisk487 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small nit, lgtm otherwise

"replaceInput", "actionSubtype", "maxLength", "firstMatchOnly", "whitelist");
String ruleName = Objects.requireNonNull(getString(rule, "rule")).
replaceAll("[^a-z0-9_-]", "");
preprocessorRuleMetricsMap.putIfAbsent(strPort, new PreprocessorRuleMetrics(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

computeIfAbsent looks like a more logical fit here, instead of putIfAbsent + get

Copy link
Contributor

@basilisk487 basilisk487 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@basilisk487 basilisk487 merged commit 9b7cc42 into master Feb 24, 2020
@basilisk487 basilisk487 deleted the akodali/PUB-214 branch April 4, 2020 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants