/** * Returns the the current list of active versions. This list takes both * global defaults and thread versions into account. */ @VisibleForTesting List<Version> getVersions() { List<Version> defaultList = getDefaultVersions(); List<Version> threadList = getThreadVersions(); if (threadList == null) { return defaultList; } List<Version> combinedList = new ArrayList<Version>(defaultList.size() + threadList.size()); combinedList.addAll(defaultList); mergeVersions(combinedList, threadList); return combinedList; }
/** * Returns the the current list of active versions. This list takes both * global defaults and thread versions into account. */ @VisibleForTesting List<Version> getVersions() { List<Version> defaultList = getDefaultVersions(); List<Version> threadList = getThreadVersions(); if (threadList == null) { return defaultList; } List<Version> combinedList = new ArrayList<Version>(defaultList.size() + threadList.size()); combinedList.addAll(defaultList); mergeVersions(combinedList, threadList); return combinedList; }
/** * Returns the the current list of active versions. This list takes both * global defaults and thread versions into account. */ @VisibleForTesting List<Version> getVersions() { List<Version> defaultList = getDefaultVersions(); List<Version> threadList = getThreadVersions(); if (threadList == null) { return defaultList; } List<Version> combinedList = new ArrayList<Version>(defaultList.size() + threadList.size()); combinedList.addAll(defaultList); mergeVersions(combinedList, threadList); return combinedList; }
v = Version.findServiceVersion(getDefaultVersions(), serviceClass); if (v == null) {
v = Version.findServiceVersion(getDefaultVersions(), serviceClass); if (v == null) {
v = Version.findServiceVersion(getDefaultVersions(), serviceClass); if (v == null) {