MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / mostSpecificArray

Method mostSpecificArray

jOOQ/src/main/java/org/jooq/impl/Tools.java:8114–8130  ·  view source on GitHub ↗
(Object[] array)

Source from the content-addressed store, hash-verified

8112 }
8113
8114 static final Object[] mostSpecificArray(Object[] array) {
8115 if (isEmpty(array))
8116 return array;
8117
8118 Class<?> type = null;
8119 for (Object o : array)
8120 if (o != null)
8121 if (type == null)
8122 type = o.getClass();
8123 else if (type != o.getClass())
8124 return array;
8125
8126 if (type == null)
8127 return array;
8128 else
8129 return (Object[]) Convert.convertArray(array, type);
8130 }
8131
8132 static final <R extends Record> QuantifiedSelect<R> quantify(Quantifier q, Select<R> select) {
8133 switch (q) {

Callers 1

unnestMethod · 0.80

Calls 2

isEmptyMethod · 0.95
convertArrayMethod · 0.95

Tested by

no test coverage detected