if (size == 0)
if (length == 0)
    public ServiceReference[] getServiceReferences()    {        Tracked tracked = this.tracked;     /* use local var since we are not synchronized */        if (tracked == null)    /* if ServiceTracker is not open */        {            return null;        }        synchronized (tracked)        {            int size = tracked.size();            if (size == 0)            {                return null;            }            ServiceReference references[] = new ServiceReference[size];            Enumeration enum = tracked.keys();            for (int i = 0; i < size; i++)            {                references[i] = (ServiceReference)enum.nextElement();            }            return references;        }    }