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 warnings that are related to the use of a Result raw type.. #7597

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

BradWalker
Copy link
Member

Cleanup warnings that are related to the use of a Result raw type..

Warnings like this:

[repeat] /home/bwalker/src/netbeans/ide/editor.fold.nbui/src/org/netbeans/modules/editor/fold/ui/FoldViewFactory.java:107: warning: [rawtypes] found raw type: Result
[repeat] private Lookup.Result colorSource;
[repeat] ^
[repeat] missing type arguments for generic class Result
[repeat] where T is a type-variable:
[repeat] T extends Object declared in class Result

This pull request reduces many of those warnings.


^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 added this to the NB23 milestone Jul 18, 2024
@BradWalker BradWalker self-assigned this Jul 18, 2024
@BradWalker BradWalker force-pushed the cleanup_raw_type_Result branch from 0776319 to 9d43212 Compare July 19, 2024 03:14
@BradWalker BradWalker added the ci:all-tests [ci] enable all tests label Jul 19, 2024
@BradWalker BradWalker force-pushed the cleanup_raw_type_Result branch from 9d43212 to f08d3c9 Compare July 19, 2024 04:09
@neilcsmith-net neilcsmith-net modified the milestones: NB23, NB24 Jul 22, 2024
@matthiasblaesing
Copy link
Contributor

@BradWalker could you please see if this is still intent for NB24? Given the unresolved comments, I would suggest to remove milestone and plan when there is time to work on this.

@mbien mbien removed this from the NB24 milestone Oct 18, 2024
@BradWalker BradWalker force-pushed the cleanup_raw_type_Result branch 2 times, most recently from 8444a60 to 43414fb Compare January 11, 2025 19:43
@BradWalker BradWalker added this to the NB25 milestone Jan 11, 2025
@BradWalker
Copy link
Member Author

@BradWalker could you please see if this is still intent for NB24? Given the unresolved comments, I would suggest to remove milestone and plan when there is time to work on this.

Hey @matthiasblaesing , sorry to be delayed on responding. Thank you for the code review oversight. I think that I've fixed everything. Trying to clean up old pull requests before starting anything new.

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.

There are unanswered comments, so not sure if that is intentional.

@BradWalker BradWalker force-pushed the cleanup_raw_type_Result branch from 43414fb to b836208 Compare January 12, 2025 17:24
@BradWalker
Copy link
Member Author

Oversight on my part. Should be fixed now..

Warnings like this:

[repeat] /home/bwalker/src/netbeans/ide/editor.fold.nbui/src/org/netbeans/modules/editor/fold/ui/FoldViewFactory.java:107: warning: [rawtypes] found raw type: Result
[repeat] private Lookup.Result colorSource;
[repeat] ^
[repeat] missing type arguments for generic class Result
[repeat] where T is a type-variable:
[repeat] T extends Object declared in class Result

This pull request reduces many of those warnings.
@BradWalker BradWalker force-pushed the cleanup_raw_type_Result branch from b836208 to 27a48fc Compare January 12, 2025 17:49
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. Thank you. The failing check is caused by the author in the commit entry. There is no space between your first and lastname. I don't think this needs a respin, but would be good to fix for next commits.

@BradWalker BradWalker merged commit b3bdee7 into apache:master Jan 14, 2025
40 of 41 checks passed
@BradWalker BradWalker deleted the cleanup_raw_type_Result branch January 14, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:all-tests [ci] enable all tests Code cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants