MCPcopy
hub / github.com/apache/groovy / withoutNulls

Method withoutNulls

src/main/java/groovy/inspect/Inspector.java:451–457  ·  view source on GitHub ↗

Replaces null entries with #NOT_APPLICABLE. @param toNormalize the array to normalize @return the normalized array

(String[] toNormalize)

Source from the content-addressed store, hash-verified

449 * @return the normalized array
450 */
451 protected String[] withoutNulls(String[] toNormalize) {
452 for (int i = 0; i < toNormalize.length; i++) {
453 String s = toNormalize[i];
454 if (null == s) toNormalize[i] = NOT_APPLICABLE;
455 }
456 return toNormalize;
457 }
458
459 /**
460 * Prints member information to {@link System#out}.

Callers 3

fieldInfoMethod · 0.95
fieldWithInfoMethod · 0.95
methodInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected