From a99e04e6da822d08a4aa28d597181ce483a8873b Mon Sep 17 00:00:00 2001 From: Vahid Hashemian Date: Wed, 25 Oct 2023 13:22:54 -0700 Subject: [PATCH] Update method name --- psc/src/main/java/com/pinterest/psc/common/PscUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psc/src/main/java/com/pinterest/psc/common/PscUtils.java b/psc/src/main/java/com/pinterest/psc/common/PscUtils.java index 85c9325..bcd57cc 100644 --- a/psc/src/main/java/com/pinterest/psc/common/PscUtils.java +++ b/psc/src/main/java/com/pinterest/psc/common/PscUtils.java @@ -32,7 +32,7 @@ public static T instantiateFromClass(String fqdn, Class targetClass) thro } public static boolean isEc2Host() { - return doesEc2MetadataExist() || isSysVendorAws() || IsAwsOsDetected(); + return doesEc2MetadataExist() || isSysVendorAws() || isAwsOsDetected(); } protected static boolean doesEc2MetadataExist() { @@ -56,7 +56,7 @@ protected static boolean isSysVendorAws() { } } - protected static boolean IsAwsOsDetected() { + protected static boolean isAwsOsDetected() { try { return System.getProperty("os.version").contains("aws"); } catch (Exception e) {