Skip to content

Commit

Permalink
Make argument list unmodifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Sep 10, 2023
1 parent f1894eb commit 0332e4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Collections;
import java.util.List;
import java.util.Objects;

Expand All @@ -48,7 +49,7 @@ interface Component {
if (placeholder == null)
return raw;
else
return placeholder.value(context, arguments);
return placeholder.value(context, Collections.unmodifiableList(arguments));
};
}
}

0 comments on commit 0332e4a

Please sign in to comment.