Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jdk17): use java.specification.version for web3ClientVersion #35

Open
wants to merge 1 commit into
base: arch/arm64
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -226,15 +225,11 @@ public static void handleLogsFilter(LogsFilterCapsule logsFilterCapsule) {

@Override
public String web3ClientVersion() {
Pattern shortVersion = Pattern.compile("(\\d\\.\\d).*");
Matcher matcher = shortVersion.matcher(System.getProperty("java.version"));
matcher.matches();

return String.join("/", Arrays.asList(
"TRON",
"v" + Version.getVersion(),
System.getProperty("os.name"),
"Java" + matcher.group(1)));
"Java" + System.getProperty("java.specification.version")));
}

@Override
Expand Down