Github user kaspersorensen commented on a diff in the pull request:

    https://github.com/apache/metamodel/pull/115#discussion_r70456508
  
    --- Diff: core/src/main/java/org/apache/metamodel/util/WildcardPattern.java 
---
    @@ -32,13 +32,15 @@
     public final class WildcardPattern implements Serializable {
     
        private static final long serialVersionUID = 857462137797209624L;
    +   private final boolean _startsWithDelim;
    +   private final boolean _endsWithDelim;
        private String _pattern;
        private char _wildcard;
    -   private boolean _endsWithDelim;
     
        public WildcardPattern(String pattern, char wildcard) {
                _pattern = pattern;
                _wildcard = wildcard;
    +           _startsWithDelim = (_pattern.charAt(0) == _wildcard);
    --- End diff --
    
    This will throw IndexOutOfBoundsException if an empty string is passed as 
the pattern.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to