Skip to content

Commit

Permalink
switch to google patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl committed Oct 23, 2020
1 parent c220db7 commit 7a95354
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
Expand All @@ -20,8 +20,8 @@

import org.apache.hadoop.fs.GlobPattern;

import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import com.google.re2j.Pattern;
import com.google.re2j.PatternSyntaxException;

/**
* Enhanced version of GlobPattern class that is defined in hadoop with extra capability of matching
Expand Down Expand Up @@ -56,7 +56,7 @@ public static Pattern compile(String globPattern) {
}

private static void error(String message, String pattern, int pos) {
throw new PatternSyntaxException(message, pattern, pos);
throw new PatternSyntaxException(message, pattern);
}

/**
Expand Down

0 comments on commit 7a95354

Please sign in to comment.