~ubuntu-branches/ubuntu/quantal/commons-io/quantal

« back to all changes in this revision

Viewing changes to src/java/org/apache/commons/io/filefilter/AbstractFileFilter.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2008-02-21 13:26:43 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080221132643-p4c8f8lhb9rnqnlo
Tags: 1.4-1
* New upstream release
* Bump Standards-Version to 3.7.3
* Bump up debhelper compat to 6
* Replace XS-Vcs headers with Vcs
* debian/patches:
  - remove 01_no_ext_links.dpatch - not required
  - remove 02_no_mkdir_in_homedir.dpatch - not required
* Remove dpatch from Build-Depends
* Update debian/rules and debian/libcommons-io-java-doc.install
  with new target dirs
* debian/copyright: add copyright notice

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * otherwise your class will infinitely loop.
27
27
 *
28
28
 * @since Commons IO 1.0
29
 
 * @version $Revision: 471628 $ $Date: 2006-11-06 05:06:45 +0100 (Mo, 06 Nov 2006) $
 
29
 * @version $Revision: 539231 $ $Date: 2007-05-18 04:10:33 +0100 (Fri, 18 May 2007) $
30
30
 * 
31
31
 * @author Stephen Colebourne
32
32
 */
53
53
        return accept(new File(dir, name));
54
54
    }
55
55
 
 
56
    /**
 
57
     * Provide a String representaion of this file filter.
 
58
     *
 
59
     * @return a String representaion
 
60
     */
 
61
    public String toString() {
 
62
        String name = getClass().getName();
 
63
        int period = name.lastIndexOf('.');
 
64
        return (period > 0 ? name.substring(period + 1) : name);
 
65
    }
 
66
 
56
67
}