Skip to content

IGNITE-28944 Refactor SecurityBasicPermissionSet - #13424

Open
shishkovilja wants to merge 4 commits into
apache:masterfrom
shishkovilja:ignite-28944
Open

IGNITE-28944 Refactor SecurityBasicPermissionSet#13424
shishkovilja wants to merge 4 commits into
apache:masterfrom
shishkovilja:ignite-28944

Conversation

@shishkovilja

Copy link
Copy Markdown
Contributor

No description provided.

@ignitetcbot

Copy link
Copy Markdown
Contributor

TCBot Test Analysis

Possible Blockers (0)

No blockers found.

New Tests (0)

No new tests found.

}

/** @param map Map. */
@SuppressWarnings("rawtypes")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
@SuppressWarnings("rawtypes")
@SuppressWarnings({"rawtypes", "unchecked"})

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@petrov-mg , IDE tells me, that it is "redundand" suppression.

}

/** @param map Map. */
@SuppressWarnings("rawtypes")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
@SuppressWarnings("rawtypes")
@SuppressWarnings({"rawtypes", "unchecked"})

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@petrov-mg , IDE tells me, that it is "redundand" suppression.

*/
static Collection<SecurityPermission> permissions(SecurityPermission... perms) {
Collection<SecurityPermission> col = U.newHashSet(perms.length);
static EnumSet<SecurityPermission> permissions(SecurityPermission... perms) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems that we can drop this method and use EnumSet.of(<permisisons>) instead.

@shishkovilja
shishkovilja force-pushed the ignite-28944 branch 2 times, most recently from ae1d633 to cecbe6e Compare August 4, 2026 15:14
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Possible compatibility issues. Please, check rolling upgrade cases

This PR modifies protected classes (with Order annotation).
Changes to these classes can break rolling upgrade compatibility.

Affected files:

  • modules/core/src/main/java/org/apache/ignite/plugin/security/SecurityBasicPermissionSet.java

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