Class ImportCohesionCheck

  • All Implemented Interfaces:,,

    public final class ImportCohesionCheck
    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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void processFiltered​(File file, lines)  
      • Methods inherited from class

        addViolations, beginProcessing, destroy, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getTabWidth, getViolations, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidth
      • Methods inherited from class

        finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
      • Methods inherited from class

        configure, contextualize, getConfiguration, setupChild
      • Methods inherited from interface

      • Methods inherited from interface

    • Constructor Detail

      • ImportCohesionCheck

        public ImportCohesionCheck()
    • Method Detail

      • processFiltered

        public void processFiltered​(File file,
        Specified by:
        processFiltered in class