this.tests = new Test[tests.size()];
int len = tests.size(); this.tests = new Test[(len == 0) ? 1 : len]; if (len > 0)
  public Selector(int axis, List tests)  {    this.axis = axis;    this.tests = new Test[tests.size()];    tests.toArray(this.tests);    if (axis == NAMESPACE &&        this.tests.length > 0 &&        this.tests[0] instanceof NameTest)      {        NameTest nt = (NameTest) this.tests[0];        this.tests[0] = new NamespaceTest(nt.qName, nt.anyLocalName, nt.any);      }  }