Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code quality fix - Security - Array is stored directly #1039

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

Closed
faisal-hameed wants to merge 1 commit into AsyncHttpClient:master from DevFactory:release/staging-array-is-stored-directly-fix-1
Closed

Code quality fix - Security - Array is stored directly #1039

faisal-hameed wants to merge 1 commit into AsyncHttpClient:master from DevFactory:release/staging-array-is-stored-directly-fix-1

Conversation

@faisal-hameed
Copy link

@faisal-hameed faisal-hameed commented Nov 18, 2015

This pull request is focused on resolving occurrences of PMD rule pmd:ArrayIsStoredDirectly - "Security - Array is stored directly".
You can find more information about the issue here: http://pmd.sourceforge.net/pmd-4.3.0/rules/sunsecure.html

Please let me know if you have any questions.

Faisal.

Copy link
Contributor

For everything that's on the hot path (meaning not tests and things like config that's only instanciated once), this one is a big "no way".
We definitely don't want the performance penalty of all those extra copies and allocations.

Copy link
Contributor

@slandelle slandelle Jan 6, 2016

Choose a reason for hiding this comment

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

Not on hot path, why not.

Copy link
Contributor

Sorry, I'm going to reject this one. I mainly develop AHC because I use it for Gatling. Copying everything around like this would definitively kill performance.

Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /