Skip to content

Commit

Permalink
Remove useless JSON serializations
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek committed Dec 10, 2024
1 parent e76b423 commit b6699d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class WebSocketMessageBrokerConfiguration implements WebSocketMessageBrok
public void registerStompEndpoints(StompEndpointRegistry registry)
{
registry.addEndpoint("/ws");
//registry.addEndpoint("/ws").withSockJS(); apparently you can *add* that one too
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

package io.xeres.common.message.chat;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class PrivateChatMessage
{
private String content;
Expand All @@ -43,6 +45,7 @@ public void setContent(String content)
this.content = content;
}

@JsonIgnore
public boolean isEmpty()
{
return content == null;
Expand Down

0 comments on commit b6699d0

Please sign in to comment.