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

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.

None yet

2 participants