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

Removed a lot of compiler warnings. Part 2 #5490

Closed
wants to merge 2 commits into from
Closed

Removed a lot of compiler warnings. Part 2 #5490

wants to merge 2 commits into from

Conversation

tbw777
Copy link
Contributor

@tbw777 tbw777 commented Feb 14, 2023

Inserted diamond in constructions like this:
ArrayList<Strings> = new ArrayList();
No any interfaces was changed

Part 2:
Replaced on already defined generics:

Collections.EMPTY_SET -> Collections.emptySet()
Collections.EMPTY_LIST -> Collections.emptyList()
Collections.EMPTY_MAP -> Collections.emptyMap()

Previos part 1: #5487

Inserted diamond in constructions like this:
ArrayList<Strings> = new ArrayList();
No any interfaces was changed
Inserted diamond in constructions like this:
ArrayList<Strings> = new ArrayList();
No any interfaces was changed

Part 2:
Replaced on already defined generics:
Collections.EMPTY_SET -> Collections.emptySet()
Collections.EMPTY_LIST -> Collections.emptyList()
Collections.EMPTY_MAP -> Collections.emptyMap()

Previos part 1: #5487
@tbw777 tbw777 closed this Feb 14, 2023
@tbw777 tbw777 deleted the c2 branch February 14, 2023 17:17
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.

1 participant