Skip to content

Conversation

@Telamon-m
Copy link

No description provided.

import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class GotifyClient {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what the modernization is? the class -> record change I can understand but the rest doesn't seem necessary.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Sure - here are my comments:

  • Java 11 is not supported anymore.
  • bump version of jackson in maven section
  • No need to instantiate a GotifyClient instance; for this example simply call a static method (sendPush).
  • Format response in a nicer way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants