Subversion Repository Public Repository

litesoft

Diff Revisions 958 vs 959 for /trunk/Java/ScarPlus/src/com/esotericsoftware/wildcard/support/WildFileNameMatcher.java

Diff revisions: vs.
  @@ -2,12 +2,10 @@
2 2
3 3 import com.esotericsoftware.wildcard.*;
4 4
5 - public class WildFileNameMatcher implements FileNameMatcher
6 - {
5 + public class WildFileNameMatcher implements FileNameMatcher {
7 6 private final FilePathPartMatcher mFilePathPartMatcher;
8 7
9 - public WildFileNameMatcher( String pFileNamePattern )
10 - {
8 + public WildFileNameMatcher( String pFileNamePattern ) {
11 9 mFilePathPartMatcher = new WildCardPatternFilePathPartMatcher( pFileNamePattern );
12 10 }
13 11
  @@ -17,8 +15,7 @@
17 15 * @param filePath !null and !empty and trim()'d (NO path may be specified)
18 16 */
19 17 @Override
20 - public boolean acceptable( String fileName )
21 - {
18 + public boolean acceptable( String fileName ) {
22 19 return !fileName.contains( "/" ) && mFilePathPartMatcher.acceptable( fileName );
23 20 }
24 21 }