Add EqualsAndHashCode to Lombok data/value that do not extend Object
This commit is contained in:
@@ -25,8 +25,10 @@
|
||||
package net.runelite.client.events;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public abstract class ChatboxInput extends ChatInput
|
||||
{
|
||||
private final String value;
|
||||
|
||||
@@ -25,8 +25,10 @@
|
||||
package net.runelite.client.events;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public abstract class PrivateMessageInput extends ChatInput
|
||||
{
|
||||
private final String target;
|
||||
|
||||
@@ -24,10 +24,12 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.discord;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Value;
|
||||
import net.runelite.http.api.ws.messages.party.PartyMemberMessage;
|
||||
|
||||
@Value
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
class DiscordUserInfo extends PartyMemberMessage
|
||||
{
|
||||
private final String userId;
|
||||
|
||||
@@ -24,11 +24,13 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.party.messages;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.http.api.ws.messages.party.PartyMemberMessage;
|
||||
|
||||
@Value
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class LocationUpdate extends PartyMemberMessage
|
||||
{
|
||||
private final WorldPoint worldPoint;
|
||||
|
||||
@@ -24,11 +24,13 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.party.messages;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.http.api.ws.messages.party.PartyMemberMessage;
|
||||
|
||||
@Value
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class TilePing extends PartyMemberMessage
|
||||
{
|
||||
private final WorldPoint point;
|
||||
|
||||
Reference in New Issue
Block a user