Class ImportCohesionCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable, FileSetCheck

    public final class ImportCohesionCheck
    extends AbstractFileSetCheck
    Check if import lines are all together without any empty lines or comments.

    All import instructions shall stay together, without any empty lines between them. If you need to separate them because the list is too big - it's time to refactor the class and make is smaller.