Skip to content

Conversation

line-o
Copy link
Member

@line-o line-o commented Sep 30, 2024

Description:

small refactoring of the persistentLogin module

Reference:

Type of tests:

None added

import org.exist.xquery.value.DurationValue;

import java.security.SecureRandom;
import java.util.*;
Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

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

yeas please

import org.exist.xquery.value.DurationValue;

import java.security.SecureRandom;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

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

please expand the *

Copy link
Member Author

@line-o line-o left a 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.

Copy link
Member

@dizzzz dizzzz left a comment

Choose a reason for hiding this comment

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

image

@adamretter adamretter changed the title [refactor] PersistentLogin for readability and maintainability Refactor PersistentLogin for readability and maintainability Oct 8, 2024
@line-o
Copy link
Member Author

line-o commented Nov 1, 2024

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.

@line-o line-o marked this pull request as draft November 1, 2024 11:08
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants