Class CheckTypeSummaryWarningsGuard

  • All Implemented Interfaces:
    java.io.Serializable

    public class CheckTypeSummaryWarningsGuard
    extends WarningsGuard
    A warnings guard that demotes the errors found in type summary files to be less severe, leaving only the errors found in the original source.
    See Also:
    Serialized Form
    • Constructor Detail

      • CheckTypeSummaryWarningsGuard

        public CheckTypeSummaryWarningsGuard​(CheckLevel level)
    • Method Detail

      • level

        public CheckLevel level​(JSError error)
        Description copied from class: WarningsGuard
        Returns a new check level for a given error. OFF - suppress it, ERROR - report as error. null means that this guard does not know what to do with the error. Null is extremely helpful when you have a chain of guards. If current guard returns null, then the next in the chain should process it.
        Specified by:
        level in class WarningsGuard
        Parameters:
        error - a reported error.
        Returns:
        what level given error should have.
      • getPriority

        protected int getPriority()
        Description copied from class: WarningsGuard
        The priority in which warnings guards are applied. Lower means the guard will be applied sooner. Expressed on a scale of 1 to 100.
        Overrides:
        getPriority in class WarningsGuard