Skip to content

Commit

Permalink
Merge pull request #1536 from madsboddum/chore/general/notnull-player…
Browse files Browse the repository at this point in the history
…-playereventintent

Mark Player as @NotNull in PlayerEventIntent to communicate null chec…
  • Loading branch information
Josh-Larson authored Jun 7, 2024
2 parents fe0ad4c + 3bb76a8 commit 18d5d20
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2018 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
Expand Down Expand Up @@ -29,25 +29,27 @@
import com.projectswg.holocore.resources.support.global.player.Player;
import com.projectswg.holocore.resources.support.global.player.PlayerEvent;
import me.joshlarson.jlcommon.control.Intent;
import org.jetbrains.annotations.NotNull;

public class PlayerEventIntent extends Intent {

private Player player;
private PlayerEvent event;

public PlayerEventIntent(Player p, PlayerEvent event) {
public PlayerEventIntent(@NotNull Player p, PlayerEvent event) {
setPlayer(p);
setEvent(event);
}

public void setPlayer(Player p) {
public void setPlayer(@NotNull Player p) {
this.player = p;
}

public void setEvent(PlayerEvent event) {
this.event = event;
}

@NotNull
public Player getPlayer() {
return player;
}
Expand Down

0 comments on commit 18d5d20

Please sign in to comment.