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

Reduce warnings during build, in IDE and in GitHub UI #501

Merged
merged 7 commits into from
Dec 3, 2023

Conversation

TWiStErRob
Copy link
Contributor

Thank you for submitting a pull request! But first:

Existing tests should cover everything, most changes in this PR are only for human readers.

@TWiStErRob TWiStErRob changed the title Reduce warnings during build and consistent spacing Reduce warnings during build, in IDE and in GitHub UI Dec 2, 2023
Fixes:
w: Parameter 'kClass' is never used
… Mockito 4.6

Fixes:
'lenient(): MockSettings!' is deprecated. Deprecated in Java
spy() always returns an object be it nullable or not.

Fixes:
w: Unnecessary non-null assertion (!!) on a non-null receiver of type T
(double-spaces, missing spaces, and new line at end of file)
@TWiStErRob
Copy link
Contributor Author

@TimvdLippe rebased to resolve conflict, ready for review. Recommended commit by commit, only the last one has a lot of (whitespace) changes, the rest are tiny.

@TimvdLippe
Copy link
Contributor

This looks good to me, do you mind rebasing again as I just merged your other PR?

@TWiStErRob
Copy link
Contributor Author

Merged in and resolved the conflict

@TWiStErRob
Copy link
Contributor Author

(Merge shows what changes more trivially than rebase, if you open it on GH)

@TimvdLippe TimvdLippe merged commit 1ce3617 into mockito:main Dec 3, 2023
4 checks passed
@TWiStErRob TWiStErRob deleted the warnings branch December 3, 2023 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants