[AA LC] Generate nullability annotations for properties in enums
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
public enum E /* p.E*/ {
|
||||
Entry1,
|
||||
Entry2,
|
||||
Entry3;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static p.E valueOf(@org.jetbrains.annotations.NotNull() java.lang.String) throws java.lang.IllegalArgumentException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static p.E[] values();// values()
|
||||
|
||||
private E();// .ctor()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user