From 2a785ab6ba9861906375b0f3cb36dce79f39bc0c Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Wed, 2 Oct 2019 10:14:02 -0600 Subject: [PATCH] [minor] add openjdk to platform detector (#74) Add an openjdk case to platform detector, changes client info from `besu/v1.2.4/linux-x86_64/-ubuntu-openjdk64bitservervm-java-11` to `besu/v1.2.4/linux-x86_64/openjdk-java-11` while preserving adoptopenjdk and oracle_openjdk cases. Signed-off-by: Danno Ferrin --- .../main/java/org/hyperledger/besu/util/PlatformDetector.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/besu/src/main/java/org/hyperledger/besu/util/PlatformDetector.java b/besu/src/main/java/org/hyperledger/besu/util/PlatformDetector.java index e9cf06e80f..a1b72424f8 100644 --- a/besu/src/main/java/org/hyperledger/besu/util/PlatformDetector.java +++ b/besu/src/main/java/org/hyperledger/besu/util/PlatformDetector.java @@ -186,6 +186,9 @@ public class PlatformDetector { if (javaVendor.contains("amazoncominc")) { return "corretto"; } + if (javaVmName.contains("openjdk")) { + return "openjdk"; + } return "-" + javaVendor + "-" + javaVmName; }