mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix default getter template for boolean fields with meaningful starting 'is' (IDEA-148006)
This commit is contained in:
@@ -4,11 +4,7 @@ static ##
|
||||
$field.type ##
|
||||
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))))
|
||||
#if ($field.boolean && $field.primitive)
|
||||
#if ($StringUtil.startsWithIgnoreCase($name, 'is'))
|
||||
#set($name = $StringUtil.decapitalize($name))
|
||||
#else
|
||||
is##
|
||||
#end
|
||||
is##
|
||||
#else
|
||||
get##
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user