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

Cleanup few remaining raw type List warnings.. #5004

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

BradWalker
Copy link
Member

@BradWalker BradWalker commented Nov 24, 2022

There are a few remaining raw type List warnings remaining.. This attempt is to try and clean the bulk of them up. It's been a slog to get all this done..

[repeat] /home/bwalker/src/netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorKit.java:712: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[repeat] l.add(action);
[repeat] ^
[repeat] where E is a type-variable:
[repeat] E extends Object declared in interface List

The remaining ones are mostly due to generated code. They will require a different type of fix.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.

@BradWalker BradWalker self-assigned this Nov 24, 2022
@BradWalker BradWalker added this to the NB17 milestone Nov 24, 2022
@tonihele
Copy link

There are lot of these old Hashtables. I think they should be evaluated whether synchronization is really needed. If it is needed, changing them to ConcurrentHashMap, otherwise HashMap.

Oh, and this is just food for thought. I'm not affiliated with Netbeans development in any way :)

@BradWalker
Copy link
Member Author

There are lot of these old Hashtables. I think they should be evaluated whether synchronization is really needed. If it is needed, changing them to ConcurrentHashMap, otherwise HashMap.

Oh, and this is just food for thought. I'm not affiliated with Netbeans development in any way :)

Hey @tonihele , right you are.. It's on my radar..

Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Looks sane to me.

There are a few remaining rawy type List warnings remaining.. This try to clean the bulk of them up. It's
been a slog to get all this done..

   [repeat] /home/bwalker/src/netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorKit.java:712: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
   [repeat]                         l.add(action);
   [repeat]                              ^
   [repeat]   where E is a type-variable:
   [repeat]     E extends Object declared in interface List
@BradWalker BradWalker merged commit 865fee2 into apache:master Dec 4, 2022
pepness pushed a commit to pepness/incubator-netbeans that referenced this pull request Jan 9, 2023
There are a few remaining raw type List warnings remaining.. This attempt is to try and clean the bulk of them up. It's been a slog to get all this done..

[repeat] /home/bwalker/src/netbeans/ide/editor/src/org/netbeans/modules/editor/NbEditorKit.java:712: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[repeat] l.add(action);
[repeat] ^
[repeat] where E is a type-variable:
[repeat] E extends Object declared in interface List

The remaining ones are mostly due to generated code. They will require a different type of fix.
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.

None yet

3 participants