Skip to content
Browse files

removed file separator transformer to fix JENKINS-15285

  • Loading branch information...
1 parent c1ed3d7 commit c062e0f3e1fb95ec21e1c266b36d9b9ed21cf2bc @fcamblor fcamblor committed Oct 23, 2012
View
8 ...in/java/hudson/plugins/scm_sync_configuration/strategies/model/PatternsEntityMatcher.java
@@ -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) {

0 comments on commit c062e0f

Please sign in to comment.
Something went wrong with that request. Please try again.