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

Method emptyToNull

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

Adapted from com.google.common.base.Strings#emptyToNull.

(String string)

Source from the content-addressed store, hash-verified

136
137 /** Adapted from {@code com.google.common.base.Strings#emptyToNull}. */
138 public static String emptyToNull(String string) {
139 return string == null || string.isEmpty() ? null : string;
140 }
141
142 /**
143 * Removes values from the array that meet the criteria for removal via the supplied {@link

Callers 11

removesEmptyStringsMethod · 0.80
DefaultContractMethod · 0.80
HardCodedTargetMethod · 0.80
EmptyTargetMethod · 0.80
JAXRSContractMethod · 0.80

Calls 1

isEmptyMethod · 0.80