Fix exception message for boolean BuildParams properties (#50094)
This commit is contained in:
parent
277880bb4f
commit
48d401f97e
|
@ -137,7 +137,7 @@ public class BuildParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String propertyName(String methodName) {
|
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);
|
return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue