mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
refix implement method from new expr
This commit is contained in:
@@ -35,7 +35,12 @@ public class OverrideImplementExploreUtil {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static Map<MethodSignature, CandidateInfo> getMapToOverrideImplement(PsiClass aClass, boolean toImplement) {
|
||||
public static Map<MethodSignature, CandidateInfo> getMapToOverrideImplement(PsiClass aClass, boolean toImplement) {
|
||||
return getMapToOverrideImplement(aClass, toImplement, true);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Map<MethodSignature, CandidateInfo> getMapToOverrideImplement(PsiClass aClass, boolean toImplement, boolean skipImplemented) {
|
||||
Map<MethodSignature, PsiMethod> abstracts = new LinkedHashMap<MethodSignature,PsiMethod>();
|
||||
Map<MethodSignature, PsiMethod> finals = new LinkedHashMap<MethodSignature,PsiMethod>();
|
||||
Map<MethodSignature, PsiMethod> concretes = new LinkedHashMap<MethodSignature,PsiMethod>();
|
||||
@@ -55,7 +60,7 @@ public class OverrideImplementExploreUtil {
|
||||
continue;
|
||||
}
|
||||
// filter already implemented
|
||||
if (MethodSignatureUtil.findMethodBySignature(aClass, signature, false) != null) {
|
||||
if (skipImplemented && MethodSignatureUtil.findMethodBySignature(aClass, signature, false) != null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user