Skip to content

RequestProcessor warning fixes and minor update#9330

Draft
mbien wants to merge 1 commit intoapache:masterfrom
mbien:rp-updates
Draft

RequestProcessor warning fixes and minor update#9330
mbien wants to merge 1 commit intoapache:masterfrom
mbien:rp-updates

Conversation

@mbien
Copy link
Copy Markdown
Member

@mbien mbien commented Apr 10, 2026

  • use SortedSet#removeFirst instead of getFirst()+remove()
  • remove ThreadDeath and AccessController.doPrivileged() usage
  • convert Maps of type WeakHashMap to Set where applicable
  • generics rawtype warning fixes, diamonds, overrides and similar minor renovations
  • javadoc typos

low priority, can wait for NB 31 unless it gets a review in time

 - use SortedSet#removeFirst instead of getFirst()+remove()
 - remove ThreadDeath and AccessController.doPrivileged() usage
 - convert Maps of type WeakHashMap to Set where applicable
 - generics rawtype warning fixes, diamonds, overrides and similar
   minor renovations
 - javadoc typos
@mbien mbien added Code cleanup Label for cleanup done on the Netbeans IDE Platform [ci] enable platform tests (platform/*) labels Apr 10, 2026
Copy link
Copy Markdown
Contributor

@eirikbakke eirikbakke left a comment

Choose a reason for hiding this comment

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

Straightforward cleanup. The "implements PrivilegedAction" stuff was related to long-removed workarounds for JNLP and Applet environments. Thanks!

}
Callable<T> delegate = new WaitableCallable<T>(c, wait);
Objects.requireNonNull(c, "Contains null tasks: " + tasks); //NOI18N
Callable<T> delegate = new WaitableCallable<>(c, wait);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

requireNonNull() was not a good idea since it will concat the string every time now. Will revert those changes and check the diff again. Those where from a jackpot script where I didn't check if the right hand side was constant.

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.

Oh, good catch.

@mbien mbien marked this pull request as draft April 11, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code cleanup Label for cleanup done on the Netbeans IDE Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants