mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14764] [MERGED] Seal Emby.Naming.Video.StackResolver.StackMetadata to silence a compiler warning #14099
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14764
Author: @varoonp123
Created: 9/9/2025
Status: ✅ Merged
Merged: 9/11/2025
Merged by: @Bond-009
Base:
master← Head:feature/StackResolverStackMetadataSealed📝 Commits (1)
cbb569aMake private Emby.Naming.Video.StackResolver.StackMetadata sealed to silence compiler warning📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
Emby.Naming/Video/StackResolver.cs(+1 -1)📄 Description
…
Make private Emby.Naming.Video.StackResolver.StackMetadata sealed to silence a compiler warning
Changes
Make private Emby.Naming.Video.StackResolver.StackMetadata sealed to silence a compiler warning
Issues
Fixes https://github.com/jellyfin/jellyfin/issues/2149 (though not entirely)
Note
I am a jellyfin self-hoster (great project btw!) looking to start contributing and started by running the tests while noticing a few compiler warnings. I thought I could start there. Since this is a private class and only internal to Emby.Naming.Video.StackResolver, preventing inheritance shouldn't break anything downstream. It doesn't seem that this class was explicitly designed with the idea that one might inherit from it See here. Apparently this might be more jit-friendly by avoiding "virtual-table" traversal/method-resolution. But mainly it silences one compiler warning.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.