Skip to content

ide: cleanup redundant casts - #9828

Open
BradWalker wants to merge 1 commit into
apache:masterfrom
BradWalker:cleanup_ide_redundant_casts
Open

BradWalker wants to merge 1 commit into
apache:masterfrom
BradWalker:cleanup_ide_redundant_casts

Conversation

@BradWalker

Copy link
Copy Markdown
Member

As a result of cleaning up many of the warnings, a bunch of redundant cast crops up. It's time to reduce many of the warnings. This code review fixes the redundant warnings in the ide code.

[repeat] /home/bwalker/src/netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorKit.java:807: warning: [cast] redundant cast to ClassLoader
[repeat] ClassLoader loader = (ClassLoader)Lookup.getDefault().lookup(ClassLoader.class);
[repeat] ^

As a result of cleaning up many of the warnings, a bunch of redundant cast crops up. It's time to reduce many of the warnings. This code review fixes the redundant warnings in the ide code.

   [repeat] /home/bwalker/src/netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorKit.java:807: warning: [cast] redundant cast to ClassLoader
   [repeat]                         ClassLoader loader = (ClassLoader)Lookup.getDefault().lookup(ClassLoader.class);
   [repeat]                                              ^
@BradWalker BradWalker added this to the NB33 milestone Nov 24, 2026
@BradWalker BradWalker self-assigned this Nov 24, 2026
@BradWalker BradWalker added Code cleanup Label for cleanup done on the Netbeans IDE Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) labels Nov 24, 2026
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 Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant