Skip to content
Success

Changes

Summary

  1. Return immutable lists when documented (#2607) (commit: 8d3480a) (details)
Commit 8d3480a8e28853d17796a6dc94508feec68ee87d by noreply
Return immutable lists when documented (#2607)

* Return unmodifiable lists where documented

* Replace `Collections.unmodifiableList` with helper

* Return unmodifiable lists if applicable
(commit: 8d3480a)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/GuildImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/cache/ChannelCacheViewImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/cache/ShardCacheViewImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/components/LayoutComponent.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageEditData.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Guild.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/channel/attribute/IThreadContainer.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/channel/concrete/Category.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/cache/UnifiedCacheViewImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/JDAImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/StageInstance.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/channel/concrete/ForumChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/channel/concrete/TextChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/channel/concrete/NewsChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Message.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/components/selections/StringSelectInteraction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/channel/concrete/MediaChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/sharding/ShardManager.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/channel/attribute/IPermissionContainer.java (diff)