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

Comments

extract additional methods in SecurityHandler to reduce checks number#424

Open
valerybokov wants to merge 1 commit intoapache:trunk from
valerybokov:refactor-SecurityHandler
Open

extract additional methods in SecurityHandler to reduce checks number #424
valerybokov wants to merge 1 commit intoapache:trunk from
valerybokov:refactor-SecurityHandler

Conversation

@valerybokov
Copy link

@valerybokov valerybokov commented Feb 21, 2026

I've extracted several methods because the decryptDictionary(COSDictionary, long, long) method has type checks (old code, line 616), and the decrypt(COSBase, long, long) method has the same type checks. So, there is double type check in the code. The new implementation of the decryptDictionary method calls overloads of the decrypt method for each type (COSString, COSArray, COSDictionary) to avoid double type check.

Perhaps all of these new methods should be made public (or all of them private). You're the one in charge.

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.

1 participant

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