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

Copy link
Member

Choose a reason for hiding this comment

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

I disagree that

  • No need to instantiate a GotifyClient instance; for this example simply call a static method (sendPush).
    makes this better.

Java 11 is not supported anymore.
Not wrong, but the code runs with java11 and java25, so it doesn't really make sense.

I'll accept the changes of the jackson version and the migration from class -> record for the message class. Everything else, I don't want to merge.

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