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

Fix #6868 Fix copy constructors #6872

Merged
merged 2 commits into from Sep 20, 2021
Merged

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Sep 19, 2021

Fix #6868 copy constructors found by static code analysis

Signed-off-by: Greg Wilkins gregw@webtide.com

Fixed copy constructors found by static code analysis

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw added this to In progress in Jetty 10.0.7/11.0.7 FROZEN via automation Sep 19, 2021
_patterns.exclude(matcher._patterns.getExcluded().toArray(new Entry[0]));
_locations.include(matcher._locations.getIncluded().toArray(new Entry[0]));
_locations.exclude(matcher._locations.getExcluded().toArray(new Entry[0]));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The ClassMatcher.add() method actually sets _locations and _patterns anyway.

But I think this is equivalent behaviour, unless someone has a subclass of ClassMatcher to override add(Entry).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it was more to keep the static analysis quiet so we can get a clean test.
Hmmm but your point about add is valid. I'll see if I can suppress the analysis.

Jetty 10.0.7/11.0.7 FROZEN automation moved this from In progress to Reviewer approved Sep 20, 2021
update from review

Signed-off-by: Greg Wilkins <gregw@webtide.com>
Jetty 10.0.7/11.0.7 FROZEN automation moved this from Reviewer approved to Review in progress Sep 20, 2021
Jetty 10.0.7/11.0.7 FROZEN automation moved this from Review in progress to Reviewer approved Sep 20, 2021
@gregw gregw merged commit f398da7 into jetty-10.0.x Sep 20, 2021
Jetty 10.0.7/11.0.7 FROZEN automation moved this from Reviewer approved to Done Sep 20, 2021
@gregw gregw deleted the jetty-10.0.x-6868-copy-contructors branch September 20, 2021 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

_uriCompliance attribute has been forgotten in the HttpConfiguration constructor from another configuration
2 participants