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

#21: Delegate Security Manager #24

Merged
merged 18 commits into from Apr 26, 2021

Conversation

redcatbear
Copy link
Contributor

Closes #21.

@redcatbear redcatbear self-assigned this Apr 22, 2021
@redcatbear redcatbear added the feature Product feature label Apr 22, 2021
feature/23-Delegate_Security_Manager

Conflicts:
	README.md
	src/main/java/org/itsallcode/junit/sysextensions/ExitGuard.java
	src/main/java/org/itsallcode/junit/sysextensions/security/ExitGuardSecurityManager.java
	src/test/java/org/itsallcode/junit/sysextensions/TestSystemExit.java
@redcatbear redcatbear changed the title #21: Update license file header #21: Delegate Security Manager Apr 22, 2021
Copy link
Contributor

@kaklakariada kaklakariada left a comment

Choose a reason for hiding this comment

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

Minor findings, idea for improvement.

doc/changes/changes_1.1.0.md Outdated Show resolved Hide resolved
doc/changes/changes_1.1.0.md Outdated Show resolved Hide resolved
doc/changes/changes_1.2.0.md Outdated Show resolved Hide resolved
doc/changes/changes_1.2.0.md Show resolved Hide resolved
doc/changes/changes_1.2.0.md Outdated Show resolved Hide resolved

public ExitGuardSecurityManager(final SecurityManager delegate)
{
this.delegate = delegate;
Copy link
Contributor

Choose a reason for hiding this comment

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

Check if argument is null and use a default SecurityManager with empty methods. Then you can avoid the null checks when delegating.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about this, but I find the other option less invasive.

Co-authored-by: chπ <kaklakariada@chp1.net>
@redcatbear redcatbear merged commit 04b834b into develop Apr 26, 2021
@redcatbear redcatbear deleted the feature/23-Delegate_Security_Manager branch April 26, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to Maven Central
2 participants