Skip to content

Replace Set with Collection in SoundRegistry#40

Merged
yusshu merged 1 commit intounnamed:ver/1.x.xfrom
SkolkovoLab:pr/sound-registry-set-to-collection
Dec 31, 2023
Merged

Replace Set with Collection in SoundRegistry#40
yusshu merged 1 commit intounnamed:ver/1.x.xfrom
SkolkovoLab:pr/sound-registry-set-to-collection

Conversation

@MelonHell
Copy link
Copy Markdown
Contributor

resolves #38

@yusshu
Copy link
Copy Markdown
Member

yusshu commented Dec 28, 2023

Instead of changing the old methods, this should add new methods (don't mark the old ones as deprecated), so backwards-compatibility is kept. Also note that @since tags for these new methods should be set to 1.6.0

@MelonHell
Copy link
Copy Markdown
Contributor Author

Replacing Set with Collection will not break backward compatibility since Set inherits Collection

@yusshu
Copy link
Copy Markdown
Member

yusshu commented Dec 28, 2023

It breaks already compiled code, as it changes the method signature

@MelonHell MelonHell force-pushed the pr/sound-registry-set-to-collection branch from 61b668d to 6f5f7e0 Compare December 28, 2023 20:59
Comment thread api/src/main/java/team/unnamed/creative/sound/SoundRegistry.java Outdated
@MelonHell MelonHell force-pushed the pr/sound-registry-set-to-collection branch from 6f5f7e0 to fe00de1 Compare December 30, 2023 14:50
@yusshu yusshu changed the base branch from main to ver/1.x.x December 31, 2023 07:42
@yusshu yusshu merged commit a6bccf4 into unnamed:ver/1.x.x Dec 31, 2023
@MelonHell MelonHell deleted the pr/sound-registry-set-to-collection branch January 26, 2024 11:11
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.

Replace Set with Collection in SoundRegistry

2 participants