Replace getEntries with hardcoded PsiMethod in LC decompiled declaration
This adds NotNull annotation. ^KTIJ-23530 Fixed
This commit is contained in:
committed by
Space Team
parent
cbb20ce2b8
commit
25f65aff3a
+10
-1
@@ -24,4 +24,13 @@ fun isSyntheticValuesOrValueOfMethod(method: PsiMethod): Boolean {
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
fun isGetEntriesMethod(method: PsiMethod): Boolean {
|
||||
return with(method) {
|
||||
name == "getEntries" &&
|
||||
parameterList.parametersCount == 0 &&
|
||||
hasModifierProperty(PsiModifier.PUBLIC) &&
|
||||
hasModifierProperty(PsiModifier.STATIC)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
public enum MyEnumClass /* one.MyEnumClass*/ {
|
||||
Entry;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static one.MyEnumClass valueOf(java.lang.String) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;// valueOf(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static one.MyEnumClass[] values();// values()
|
||||
|
||||
private MyEnumClass();// .ctor()
|
||||
|
||||
public final int doo();// doo()
|
||||
|
||||
public static kotlin.enums.EnumEntries<one.MyEnumClass> getEntries();// getEntries()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user