123505 remove case dependency

git-svn-id: svn://10.0.0.236/trunk@4438 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timm 1998-06-24 21:51:04 +00:00
parent 4ef63b0456
commit ef8075f2b3

View File

@ -22,19 +22,21 @@ import java.lang.*;
public class SuffixFilter implements FilenameFilter
{
String suffix;
String suffix;
public SuffixFilter( String inSuffix )
{
suffix = inSuffix.toUpperCase();
}
public SuffixFilter( String inSuffix )
{
suffix = inSuffix;
}
public boolean accept( File f, String s )
{
String sUpper = s.toUpperCase();
public boolean accept( File f, String s )
{
if ( s.endsWith( suffix ) )
return true;
return false;
}
if ( sUpper.endsWith( suffix ) )
return true;
return false;
}
}