Navigation Menu

Skip to content

Commit

Permalink
removed file separator transformer to fix JENKINS-15285
Browse files Browse the repository at this point in the history
  • Loading branch information
fcamblor committed Oct 22, 2012
1 parent c1ed3d7 commit c062e0f
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -15,16 +15,10 @@

public class PatternsEntityMatcher implements ConfigurationEntityMatcher {

private static final Function<String,String> FILE_SEPARATOR_TRANSFORMER = new Function<String, String>() {
public String apply(@Nullable String s) {
return s.replaceAll("/", File.separator);
}
};

private String[] patterns;

public PatternsEntityMatcher(String[] patterns) {
this.patterns = Collections2.transform(Arrays.asList(patterns), FILE_SEPARATOR_TRANSFORMER).toArray(new String[0]);
this.patterns = patterns;
}

public boolean matches(Saveable saveable, File file) {
Expand Down

0 comments on commit c062e0f

Please sign in to comment.