[java-inspection] IDEA-356474 Support JEP 477: support implicitly imported modules in optimize imports

GitOrigin-RevId: d4fb59ccffbf0a51f97b1ba965f2d0d59834940e
This commit is contained in:
Mikhail Pyltsin
2024-07-24 19:57:22 +02:00
committed by intellij-monorepo-bot
parent 6aaaf0a7ce
commit 7b0eaea1e9
53 changed files with 1013 additions and 97 deletions

View File

@@ -38,12 +38,14 @@ public interface PsiJavaFile extends PsiImportHolder, PsiClassOwner, AbstractBas
/**
* Returns the array of classes or packages which have been
* imported on demand (for example, javax.swing.*)
* imported on non-static demand (for example, javax.swing.*)
*
* @param includeImplicit if true, implicitly imported packages (like java.lang) are included.
* @param checkIncludes deprecated, no longer used
* @return the array of PsiClass or PsiPackage elements for the imports.
* @deprecated please use other methods to check imports, the method doesn't support module imports
*/
@Deprecated
PsiElement @NotNull [] getOnDemandImports(boolean includeImplicit, @Deprecated boolean checkIncludes);
/**