Class DiagnosticGroupPathSuppressingWarningsGuard

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DiagnosticGroupPathSuppressingWarningsGuard
    extends WarningsGuard
    A warnings guard that suppresses warnings for a particular diagnostic group for a file that contains the specified substring.
    See Also:
    Serialized Form
    • Constructor Detail

      • DiagnosticGroupPathSuppressingWarningsGuard

        public DiagnosticGroupPathSuppressingWarningsGuard​(DiagnosticGroup group,
                                                           java.lang.String part)
    • Method Detail

      • level

        public @Nullable CheckLevel level​(JSError error)
        Does not touch warnings in other paths.
        Specified by:
        level in class WarningsGuard
        Parameters:
        error - a reported error.
        Returns:
        what level given error should have.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object