Package org.sonar.java.checks.helpers
Class QuickFixHelper.ImportSupplier
java.lang.Object
org.sonar.java.checks.helpers.QuickFixHelper.ImportSupplier
- Enclosing class:
QuickFixHelper
-
Method Summary
Modifier and TypeMethodDescriptionnewImportEdit(String requiredType) Only entry point to the supplier.
-
Method Details
-
newImportEdit
Only entry point to the supplier. Check if importing the required type is needed.- Parameters:
requiredType- The fully qualified name of a the type required to compile the associated quick-fix- Returns:
- An empty Optional if there is no need of an extra import. Otherwise, the edit inserting a new import at the best possible place corresponding to the required type.
-