-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Refactor PersistentLogin for readability and maintainability #5460
base: develop-6.x.x
Are you sure you want to change the base?
Conversation
.../persistentlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLogin.java
Show resolved
Hide resolved
@@ -31,6 +31,7 @@ | |||
|
|||
import java.security.SecureRandom; | |||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be replaced by a list of package imports from java.util?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeas please
@@ -31,6 +31,7 @@ | |||
|
|||
import java.security.SecureRandom; | |||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please expand the *
...ntlogin/src/main/java/org/exist/xquery/modules/persistentlogin/PersistentLoginFunctions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Description:
small refactoring of the persistentLogin module
Reference:
Type of tests:
None added