Skip to content

Commit

Permalink
maven
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound403 committed Nov 24, 2023
1 parent 90cc469 commit 082fdab
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ public final class WecomUserAgent {
/**
* UserAgent
*/
public static final String WECOM_USER_AGENT = "Wecom/" + VERSION + Optional.ofNullable(System.getProperty("java.version"))
.map(javaVersion -> " Java/" + javaVersion)
.orElse("");
public static final String WECOM_USER_AGENT;

static {
WECOM_USER_AGENT = "Wecom/" + VERSION + Optional.ofNullable(System.getProperty("java.version"))
.map(javaVersion -> " Java/" + javaVersion)
.orElse("");
}

private WecomUserAgent() {
}
Expand Down

0 comments on commit 082fdab

Please sign in to comment.