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

Document hidden and protected classes #12511

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Nov 10, 2024

Fix #12106 by documenting hidden and protected classes.

Fix #12106 by documenting hidden and protected classes.
@gregw gregw requested a review from janbartel November 10, 2024 22:03
Copy link
Contributor

@janbartel janbartel left a comment

Choose a reason for hiding this comment

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

A couple of changes for consistency but otherwise ok.

@@ -672,22 +677,28 @@ public void addHiddenClassMatcher(ClassMatcher hiddenClasses)
* any existing matcher.
*
* @param protectedClasses The class matcher of patterns to add to the system ClassMatcher
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param protectedClasses The class matcher of patterns to add to the system ClassMatcher
* @param protectedClasses The class matcher of patterns to add to the protected (system) ClassMatcher

@@ -661,6 +664,8 @@ public void setProtectedClassMatcher(ClassMatcher protectedClasses)
* any existing matcher.
*
* @param hiddenClasses The class matcher of patterns to add to the server ClassMatcher
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param hiddenClasses The class matcher of patterns to add to the server ClassMatcher
* @param hiddenClasses The class matcher of patterns to add to the hidden (server) ClassMatcher

*/
public void addProtectedClassMatcher(ClassMatcher protectedClasses)
{
_protectedClasses.add(protectedClasses.getPatterns());
}

/**
* @return The ClassMatcher used to match System (protected) classes
* @return The ClassMatcher used to match System (protected) classes to implement the
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return The ClassMatcher used to match System (protected) classes to implement the
* @return The ClassMatcher used to match protected (system) classes to implement the

*/
public ClassMatcher getProtectedClassMatcher()
{
return _protectedClasses;
}

/**
* @return The ClassMatcher used to match Server (hidden) classes
* @return The ClassMatcher used to match Server (hidden) classes to implement the
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return The ClassMatcher used to match Server (hidden) classes to implement the
* @return The ClassMatcher used to match hidden (server) classes to implement the

@gregw gregw merged commit 64659c8 into jetty-12.1.x Nov 13, 2024
10 checks passed
@gregw gregw deleted the fix/12106/documentHiddenProtected branch November 13, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants