mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-37261: (code cleanup) PsiDocumentManager.getDocument() returns @Nullable value
This commit is contained in:
@@ -72,6 +72,7 @@ public abstract class PsiDocumentManager {
|
||||
* @param file the file for which the document is requested.
|
||||
* @return the document instance, or <code>null</code> if the file is binary or has no associated document.
|
||||
*/
|
||||
@Nullable
|
||||
public abstract Document getDocument(@NotNull PsiFile file);
|
||||
|
||||
/**
|
||||
|
||||
@@ -203,6 +203,7 @@ public class PsiDocumentManagerImpl extends PsiDocumentManager implements Projec
|
||||
return ((PsiManagerEx)myPsiManager).getFileManager().findFile(virtualFile);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Document getDocument(@NotNull PsiFile file) {
|
||||
if (file instanceof PsiBinaryFile) return null;
|
||||
|
||||
Reference in New Issue
Block a user