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

Strings and Boxed types should be compared using "equals()" #1

Closed
wants to merge 1 commit into from
Closed

Strings and Boxed types should be compared using "equals()" #1

wants to merge 1 commit into from

Conversation

HarisAdzemovic added a commit to ASSERT-KTH/sorald that referenced this pull request Nov 6, 2019
Link to PR:
apache/sling-org-apache-sling-auth-core#1

Link to Jira ticket:
https://issues.apache.org/jira/browse/SLING-8825

Sniper mode only added a single whitespace which was removed manually before making the pull request.
@cziegeler
Copy link
Contributor

Thanks for the PR - the current code looks strange, however with the suggest PR a NPE might occur as sudo might be null. The current boolean is taking this into account. I think a much better way would be to remove that boolean and the setCookie check and adjust the following if blocks

@sonarcloud
Copy link

sonarcloud bot commented Jan 17, 2021

@cziegeler
Copy link
Contributor

Closing in favour of https://issues.apache.org/jira/browse/SLING-10319

@cziegeler cziegeler closed this Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants