mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
refine PsiField.getName() notnullness to avoid a lot of yellow code and fix redundant code in clients
GitOrigin-RevId: b9c9437b83e7ac8266b87b635757b9ca067041b4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e5837e0268
commit
97102f4588
@@ -61,10 +61,7 @@ public class PsiFieldTreeElement extends JavaClassTreeElementBase<PsiField> impl
|
||||
public String getAlphaSortKey() {
|
||||
final PsiField field = getElement();
|
||||
if (field != null) {
|
||||
String name = field.getName();
|
||||
if (name != null) {
|
||||
return name;
|
||||
}
|
||||
return field.getName();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user