Class NullFileNameFilter

java.lang.Object
io.jenkins.plugins.analysis.core.filter.FileNameFilter
io.jenkins.plugins.analysis.core.filter.NullFileNameFilter
All Implemented Interfaces:
Predicate<edu.hm.hafner.analysis.Issue>

public class NullFileNameFilter extends FileNameFilter
A null object implementation of FileNameFilter that accepts every issue. It is used when no file inclusion list has been configured, so that the report is passed through unchanged.
Author:
Michael Trimarchi
  • Constructor Details

    • NullFileNameFilter

      public NullFileNameFilter()
      Creates a new instance of NullFileNameFilter.
  • Method Details

    • test

      public boolean test(edu.hm.hafner.analysis.Issue issue)
      Description copied from class: FileNameFilter
      Evaluates this predicate on the given issue.
      Specified by:
      test in interface Predicate<edu.hm.hafner.analysis.Issue>
      Overrides:
      test in class FileNameFilter
      Parameters:
      issue - the issue to test
      Returns:
      true if the file name of the issue is allowed, false otherwise