[AA LC] Generate nullability annotations for properties in enums

This commit is contained in:
Dmitriy Novozhilov
2022-08-10 13:44:11 +03:00
parent b7712a35f0
commit e6092e2dff
2 changed files with 1 additions and 15 deletions
@@ -82,7 +82,7 @@ internal class SymbolLightAccessorMethod(
private fun computeAnnotations(isPrivate: Boolean): List<PsiAnnotation> {
val nullabilityApplicable = isGetter &&
!isPrivate &&
!(isParameter && (containingClass.isAnnotationType || containingClass.isEnum))
!(isParameter && containingClass.isAnnotationType)
val nullabilityType = if (nullabilityApplicable) {
getTypeNullability(containingPropertySymbol.returnType)