MCPcopy Index your code
hub / github.com/OpenFeign/feign / valuesOrEmpty

Method valuesOrEmpty

core/src/main/java/feign/Util.java:175–178  ·  view source on GitHub ↗

Returns an unmodifiable collection which may be empty, but is never null.

(Map<String, Collection<T>> map, String key)

Source from the content-addressed store, hash-verified

173
174 /** Returns an unmodifiable collection which may be empty, but is never null. */
175 public static <T> Collection<T> valuesOrEmpty(Map<String, Collection<T>> map, String key) {
176 Collection<T> values = map.get(key);
177 return values != null ? values : Collections.emptyList();
178 }
179
180 public static void ensureClosed(Closeable closeable) {
181 if (closeable != null) {

Callers 6

containsNoStoreMethod · 0.95
logRequestMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected