File tree Expand file tree Collapse file tree
bungee/src/main/java/net/pistonmaster/pistonqueue/bungee
shared/src/main/java/net/pistonmaster/pistonqueue/shared
velocity/src/main/java/net/pistonmaster/pistonqueue/velocity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 */
2020package net .pistonmaster .pistonqueue .bungee ;
2121
22+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
2223import lombok .Getter ;
2324import net .md_5 .bungee .api .ChatColor ;
2425import net .md_5 .bungee .api .ChatMessageType ;
@@ -158,6 +159,10 @@ public Path getDataDirectory() {
158159 }
159160
160161 @ Override
162+ @ SuppressFBWarnings (
163+ value = "EI_EXPOSE_REP" ,
164+ justification = "Configuration is intentionally shared and mutated via copyFrom to keep references in sync"
165+ )
161166 public Config getConfiguration () {
162167 return configuration ;
163168 }
Original file line number Diff line number Diff line change 2323import de .exlll .configlib .Configuration ;
2424import de .exlll .configlib .Ignore ;
2525import de .exlll .configlib .PostProcess ;
26- import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
2726import net .pistonmaster .pistonqueue .shared .queue .BanType ;
2827import net .pistonmaster .pistonqueue .shared .queue .QueueGroup ;
2928import net .pistonmaster .pistonqueue .shared .queue .QueueType ;
4140import java .util .Optional ;
4241
4342@ Configuration
44- @ SuppressFBWarnings (
45- value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE" ,
46- justification = "Fields intentionally exposed through getters for ConfigLib serialization compatibility"
47- )
4843public final class Config {
4944 public static final int CURRENT_VERSION = 2 ;
5045
Original file line number Diff line number Diff line change 1919 */
2020package net .pistonmaster .pistonqueue .shared .hooks ;
2121
22+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
2223import net .pistonmaster .pistonmotd .api .PlaceholderParser ;
2324import net .pistonmaster .pistonmotd .api .PlaceholderUtil ;
2425import net .pistonmaster .pistonqueue .shared .queue .QueueType ;
3031public final class PistonMOTDPlaceholder implements PlaceholderParser {
3132 private final Config config ;
3233
34+ @ SuppressFBWarnings (
35+ value = "EI_EXPOSE_REP2" ,
36+ justification = "Placeholder must reflect live configuration changes and only reads from the provided reference"
37+ )
3338 public PistonMOTDPlaceholder (Config config ) {
3439 this .config = config ;
3540 PlaceholderUtil .registerParser (this );
Original file line number Diff line number Diff line change 3030import com .velocitypowered .api .proxy .server .RegisteredServer ;
3131import lombok .Getter ;
3232import net .kyori .adventure .text .Component ;
33+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
3334import net .pistonmaster .pistonqueue .shared .chat .MessageType ;
3435import net .pistonmaster .pistonqueue .shared .config .Config ;
3536import net .pistonmaster .pistonqueue .shared .hooks .PistonMOTDPlaceholder ;
@@ -174,6 +175,10 @@ public String getVersion() {
174175 }
175176
176177 @ Override
178+ @ SuppressFBWarnings (
179+ value = "EI_EXPOSE_REP" ,
180+ justification = "Configuration is intentionally shared and mutated via copyFrom to keep references in sync"
181+ )
177182 public Config getConfiguration () {
178183 return configuration ;
179184 }
You can’t perform that action at this time.
0 commit comments