if (wild == mTypePattern.length()) {
if (wild == mTypePattern.length() -1) {
  public void setType(String type) {    if (type == null) throw new IllegalArgumentException("null type");    if (type.length() == 0) throw new IllegalArgumentException("empty type");    mTypePattern = type.trim();    int wild;    if ((wild = type.indexOf(WILD)) != -1) {      mTypeBeforeStar = mTypePattern.substring(0,wild);      if (wild == mTypePattern.length()) {        mTypeAfterStar = null;      } else {        mTypeAfterStar = mTypePattern.substring(wild+1);      }    }  }