litesoft
Diff Revisions
958
vs
959
for /trunk/Java/ScarPlus/src/com/esotericsoftware/wildcard/support/ExactFileNameMatcher.java
|
@@ -2,14 +2,11 @@ |
2 |
2 |
|
|
3 |
3 |
|
import com.esotericsoftware.wildcard.*; |
4 |
4 |
|
|
5 |
|
- |
public class ExactFileNameMatcher implements FileNameMatcher |
6 |
|
- |
{ |
|
5 |
+ |
public class ExactFileNameMatcher implements FileNameMatcher { |
7 |
6 |
|
private String mFileNameToMatch; |
8 |
7 |
|
|
9 |
|
- |
public ExactFileNameMatcher( String pFileNameToMatch ) |
10 |
|
- |
{ |
11 |
|
- |
if ( (mFileNameToMatch = pFileNameToMatch).contains( "/" ) ) |
12 |
|
- |
{ |
|
8 |
+ |
public ExactFileNameMatcher( String pFileNameToMatch ) { |
|
9 |
+ |
if ( (mFileNameToMatch = pFileNameToMatch).contains( "/" ) ) { |
13 |
10 |
|
throw new IllegalArgumentException( "FileNames may NOT contain a '/'" ); |
14 |
11 |
|
} |
15 |
12 |
|
} |
|
@@ -20,8 +17,7 @@ |
20 |
17 |
|
* @param filePath !null and !empty and trim()'d (NO path may be specified) |
21 |
18 |
|
*/ |
22 |
19 |
|
@Override |
23 |
|
- |
public boolean acceptable( String fileName ) |
24 |
|
- |
{ |
|
20 |
+ |
public boolean acceptable( String fileName ) { |
25 |
21 |
|
return mFileNameToMatch.equals( fileName ); |
26 |
22 |
|
} |
27 |
23 |
|
} |