Refactor PersistentLogin for readability and maintainability#5460
Draft
line-o wants to merge 1 commit intoeXist-db:develop-6.x.xfrom
Draft
Refactor PersistentLogin for readability and maintainability#5460line-o wants to merge 1 commit intoeXist-db:develop-6.x.xfrom
line-o wants to merge 1 commit intoeXist-db:develop-6.x.xfrom
Conversation
line-o
commented
Sep 30, 2024
.../persistentlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLogin.java
Show resolved
Hide resolved
line-o
commented
Sep 30, 2024
| @@ -31,6 +31,7 @@ | |||
|
|
|||
| import java.security.SecureRandom; | |||
| import java.util.*; | |||
Member
Author
There was a problem hiding this comment.
Should this be replaced by a list of package imports from java.util?
dizzzz
reviewed
Sep 30, 2024
| @@ -31,6 +31,7 @@ | |||
|
|
|||
| import java.security.SecureRandom; | |||
| import java.util.*; | |||
dizzzz
reviewed
Sep 30, 2024
...ntlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLoginFunctions.java
Outdated
Show resolved
Hide resolved
line-o
commented
Sep 30, 2024
Member
Author
line-o
left a comment
There was a problem hiding this comment.
Please have a look if these change are sound.
.../persistentlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLogin.java
Outdated
Show resolved
Hide resolved
.../persistentlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLogin.java
Show resolved
Hide resolved
Member
Author
|
Will put this in draft until reviews were addressed. I Might end up re-creating this PR targeting develop and then back port to 6.x.x from there. |
- add Enum for all functions exposed by this module - use Enum in PersistentLoginFunctions.eval - add com.google.code.findbugs to maven dependencies for this extension - invert function authenticated => unauthenticated - make parameters and variables final where possible - add @nullable annotations
f27a5dc to
ad38cb7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description:
small refactoring of the persistentLogin module
Reference:
Type of tests:
None added