]> source.dussan.org Git - pf4j.git/commitdiff
Make `PluginStateEvent` fields `final` (#566)
authorSebastian Lövdahl <slovdahl@hibox.fi>
Tue, 13 Feb 2024 17:51:57 +0000 (19:51 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 17:51:57 +0000 (19:51 +0200)
pf4j/src/main/java/org/pf4j/PluginStateEvent.java

index 99ef91ccfd4c32dcb72d63d9613b894f941a7844..8793abe9c10cd85b388db8cbeac4e81e879dfed7 100644 (file)
@@ -28,8 +28,8 @@ import java.util.EventObject;
  */
 public class PluginStateEvent extends EventObject {
 
-    private PluginWrapper plugin;
-    private PluginState oldState;
+    private final PluginWrapper plugin;
+    private final PluginState oldState;
 
     public PluginStateEvent(PluginManager source, PluginWrapper plugin, PluginState oldState) {
         super(source);