import com.stevesoft.pat.wrap.StringWrap;
-
/** Matches a Unicode punctuation character. */
class UnicodePunct extends UniValidator
{
*/
public class Regex extends RegRes implements FilenameFilter
{
-
/**
* BackRefOffset gives the identity number of the first pattern. Version 1.0
* used zero, version 1.1 uses 1 to be more compatible with perl.
{
try
{
- return getClass().newInstance();
+ return getClass().getDeclaredConstructor().newInstance();
} catch (InstantiationException ie)
{
return null;
} catch (IllegalAccessException iae)
{
return null;
+ } catch (ReflectiveOperationException roe)
+ {
+ return null;
}
}