Fix exception message for boolean BuildParams properties (#50094)

This commit is contained in:
Mark Vieira 2019-12-11 11:04:26 -08:00
parent 277880bb4f
commit 48d401f97e
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}