From 48d401f97ecd110c563de5b5758aa369fcf32a7f Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 11 Dec 2019 11:04:26 -0800 Subject: [PATCH] Fix exception message for boolean BuildParams properties (#50094) --- .../java/org/elasticsearch/gradle/info/BuildParams.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/minimumRuntime/java/org/elasticsearch/gradle/info/BuildParams.java b/buildSrc/src/minimumRuntime/java/org/elasticsearch/gradle/info/BuildParams.java index 9fba20c7db7..19748de1b96 100644 --- a/buildSrc/src/minimumRuntime/java/org/elasticsearch/gradle/info/BuildParams.java +++ b/buildSrc/src/minimumRuntime/java/org/elasticsearch/gradle/info/BuildParams.java @@ -137,7 +137,7 @@ public class BuildParams { } private static String propertyName(String methodName) { - String propertyName = methodName.substring("get".length()); + String propertyName = methodName.startsWith("is") ? methodName.substring("is".length()) : methodName.substring("get".length()); return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1); }