src/share/classes/javax/lang/model/util/Types.java

changeset 1645
97f6839673d6
parent 1644
40adaf938847
child 1725
e8987ce7fb4b
equal deleted inserted replaced
1644:40adaf938847 1645:97f6839673d6
56 */ 56 */
57 Element asElement(TypeMirror t); 57 Element asElement(TypeMirror t);
58 58
59 /** 59 /**
60 * Tests whether two {@code TypeMirror} objects represent the same type. 60 * Tests whether two {@code TypeMirror} objects represent the same type.
61 *
62 * <p>Since annotations are only meta-data associated with a type,
63 * the set of annotations on either argument is <em>not</em> taken
64 * into account when computing whether or not two {@code
65 * TypeMirror} objects are the same type. In particular, two
66 * {@code TypeMirror} objects can have different annotations and
67 * still be considered the same.
61 * 68 *
62 * <p>Caveat: if either of the arguments to this method represents a 69 * <p>Caveat: if either of the arguments to this method represents a
63 * wildcard, this method will return false. As a consequence, a wildcard 70 * wildcard, this method will return false. As a consequence, a wildcard
64 * is not the same type as itself. This might be surprising at first, 71 * is not the same type as itself. This might be surprising at first,
65 * but makes sense once you consider that an example like this must be 72 * but makes sense once you consider that an example like this must be

mercurial