Skip to content

Commit

Permalink
return unmodifiableList for getSearchManagers
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 29, 2023
1 parent 1ad3951 commit 3d0f4f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;

Expand Down Expand Up @@ -31,7 +32,7 @@ public <T extends AudioSearchManager> T search(Class<T> klass) {
}

public List<AudioSearchManager> getSearchManagers() {
return this.searchManagers;
return Collections.unmodifiableList(this.searchManagers);
}

public void shutdown() {
Expand Down

0 comments on commit 3d0f4f6

Please sign in to comment.