mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
move members: no need to align according to nested classes (IDEA-106175)
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ public class MoveJavaMemberHandler implements MoveMemberHandler {
|
||||
final List<PsiField> beforeFields = new ArrayList<PsiField>();
|
||||
for (PsiReference psiReference : ReferencesSearch.search(member, new LocalSearchScope(targetClass))) {
|
||||
final PsiField fieldWithReference = PsiTreeUtil.getParentOfType(psiReference.getElement(), PsiField.class);
|
||||
if (fieldWithReference != null && !afterFields.contains(fieldWithReference)) {
|
||||
if (fieldWithReference != null && !afterFields.contains(fieldWithReference) && fieldWithReference.getContainingClass() == targetClass) {
|
||||
beforeFields.add(fieldWithReference);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user