Skip to content

Commit 79369f9

Browse files
committedApr 15, 2019
Types: flesh out the javadoc
1 parent 4c892c1 commit 79369f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎src/main/java/org/scijava/util/Types.java

+18
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@
8181
* <li><a href="https://github.com/coekarts/gentyref">GenTyRef</a> (Generic Type
8282
* Reflector), a library for runtime generic type introspection.</li>
8383
* </ul>
84+
* <p>
85+
* All three of these libraries contain fantastic generics-related logic, but
86+
* none of the three contained everything that SciJava needed for all its use
87+
* cases. Hence, we have drawn from sources as needed to create a unified
88+
* generics API for use from SciJava applications. See in particular the
89+
* <a href="https://github.com/scijava/scijava-ops">SciJava Ops</a> project,
90+
* which utilizes these functions heavily.
91+
* </p>
92+
* <p>
93+
* NB: The <a href=
94+
* "https://javadoc.scijava.org/Apache-Commons-Lang/org/apache/commons/lang3/reflect/TypeUtils.html">
95+
* <code>org.apache.commons.reflect.TypeUtils</code></a> class of
96+
* <a href="https://commons.apache.org/proper/commons-lang/">Apache Commons
97+
* Lang</a> version 3.4 is forked internally within this class. We did this for
98+
* two reasons: 1) to avoid bringing in the whole of Apache Commons Lang as a
99+
* dependency; and 2) to fix an infinite recursion bug in the
100+
* {@code TypeUtils.toString(Type)} method.
101+
* </p>
84102
*
85103
* @author Curtis Rueden
86104
* @author Gabe Selzer

0 commit comments

Comments
 (0)