Class ImportLayoutStyle.ImportLayoutConflictDetection

java.lang.Object
org.openrewrite.java.style.ImportLayoutStyle.ImportLayoutConflictDetection
Enclosing class:
ImportLayoutStyle

public static class ImportLayoutStyle.ImportLayoutConflictDetection extends Object
  • Method Details

    • isPackageFoldable

      public boolean isPackageFoldable(String packageName)
      Checks if folding the package will create a namespace conflict with any other classes that have already been imported.
      Parameters:
      packageName - package that qualifies for folding into a '*'.
      Returns:
      folding the package will not create any namespace conflicts.