Skip to content

Commit

Permalink
Change Optional<Integer> usages to OptionalInt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Mar 25, 2022
1 parent 119717b commit 48e2ef1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.OptionalInt;

import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
Expand Down Expand Up @@ -45,7 +46,7 @@ public class GraphQLClientConfig {
* (send a subprotocol-specific ACK message).
*/
@ConfigItem
public Optional<Integer> websocketInitializationTimeout;
public OptionalInt websocketInitializationTimeout;

/**
* The trust store location. Can point to either a classpath resource or a file.
Expand Down Expand Up @@ -93,7 +94,7 @@ public class GraphQLClientConfig {
* Port number of the proxy to use.
*/
@ConfigItem
public Optional<Integer> proxyPort;
public OptionalInt proxyPort;

/**
* Username for the proxy to use.
Expand All @@ -111,6 +112,6 @@ public class GraphQLClientConfig {
* Maximum number of redirects to follow.
*/
@ConfigItem
public Optional<Integer> maxRedirects;
public OptionalInt maxRedirects;

}

0 comments on commit 48e2ef1

Please sign in to comment.