package com.janosgyerik.dupfinder.finder;

import java.io.File;
import java.io.FileFilter;
import java.util.List;

public interface FileFinder {

    /**
     * Find files, by searching recursively through a directory tree.
     *
     * @param basedir The base directory to start searching
     * @param fileFilter A filter to decide which files to include
     * @return list of matching files found
     */
    List<File> find(File basedir, FileFilter fileFilter, int depth);

    List<File> find(File basedir, FileFilter fileFilter);

    List<File> find(File basedir, int depth);

    List<File> find(File basedir);
}

package com.janosgyerik.dupfinder.finder;

import java.io.File;
import java.io.FileFilter;
import java.util.List;

public interface FileFinder {

    /**
     * Find files, by searching recursively through a directory tree.
     *
     * @param basedir The base directory to start searching
     * @param fileFilter A filter to decide which files to include
     * @return list of matching files found
     */
    List<File> find(File basedir, FileFilter fileFilter);

    @Deprecated
    List<File> find(File basedir, FileFilter fileFilter, int depth);

    @Deprecated
    List<File> find(File basedir, int depth);

    @Deprecated
    List<File> find(File basedir);
}

mark the FileFinder.find methods with depth param and no filter param deprecated