Skip to content

Commit

Permalink
Make StringSelectMenuImpl#getOptions return unmodifiable list (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Dec 7, 2022
1 parent b7505ca commit 106ccfc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;

Expand Down Expand Up @@ -62,7 +63,7 @@ public Type getType()
@Override
public List<SelectOption> getOptions()
{
return options;
return Collections.unmodifiableList(options);
}

@Nonnull
Expand Down

0 comments on commit 106ccfc

Please sign in to comment.