mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Javafx: Fixed removing the prefix of the property getter name - remove only "is" and "get" prefixes, don't change property binding methods' names (IDEA-159866)
This commit is contained in:
@@ -121,9 +121,9 @@ public class PropertyUtil {
|
||||
@NotNull
|
||||
public static String getPropertyNameByGetter(PsiMethod getterMethod) {
|
||||
@NonNls String methodName = getterMethod.getName();
|
||||
return methodName.startsWith("get") ?
|
||||
StringUtil.decapitalize(methodName.substring(3)) :
|
||||
StringUtil.decapitalize(methodName.substring(2));
|
||||
if (methodName.startsWith("get")) return StringUtil.decapitalize(methodName.substring(3));
|
||||
if (methodName.startsWith("is")) return StringUtil.decapitalize(methodName.substring(2));
|
||||
return methodName;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user