IntelliJ generates private recipients

My IntelliJ generates private getters for several weeks, which is strange because it does not match the default pattern:

public ## #if($field.modifierStatic) static ## #end $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 #else get## #end ${name}() { return $field.name; } 

I was looking for a while that might cause this, but no result. Is this a bug or a function?

+5
source share
1 answer

My guess is the default setting for visibility in a file | Settings | Editor | Code Style | Java is Private.

+4
source

Source: https://habr.com/ru/post/1237326/


All Articles