File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed
src/main/java/org/microbean/construct Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -176,14 +176,6 @@ public UniversalType arrayTypeOf(TypeMirror t) {
176176 }
177177 }
178178
179- @ Override // Domain
180- public UniversalElement asElement (TypeMirror t ) {
181- t = unwrap (t );
182- try (var lock = lock ()) {
183- return UniversalElement .of (this .types ().asElement (t ), this );
184- }
185- }
186-
187179 @ Override // Domain
188180 public UniversalType asMemberOf (DeclaredType containingType , Element e ) {
189181 containingType = unwrap (containingType );
Original file line number Diff line number Diff line change @@ -92,18 +92,6 @@ public interface Domain {
9292 */
9393 public ArrayType arrayTypeOf (final TypeMirror componentType );
9494
95- /**
96- * Returns the {@link Element} declaring the supplied {@link TypeMirror}, <strong>or {@code null} if there is no such
97- * {@link Element}</strong>.
98- *
99- * @param t a {@link TypeMirror}; must not be {@code null}
100- *
101- * @return an {@link Element}, or {@code null}
102- *
103- * @see javax.lang.model.util.Types#asElement(TypeMirror)
104- */
105- public Element asElement (final TypeMirror t );
106-
10795 /**
10896 * Returns a non-{@code null} {@link TypeMirror} representing the type of the supplied {@link Element} when that
10997 * {@link Element} is viewed as a member of, or otherwise directly contained by, the supplied {@code containingType}.
@@ -545,7 +533,7 @@ public default boolean generic(final TypeMirror t) {
545533 case UniversalType ut -> ut .generic ();
546534 default -> {
547535 try (var lock = this .lock ()) {
548- final Element e = this .asElement (t );
536+ final Element e = this .element (t );
549537 yield e != null && this .generic (e );
550538 }
551539 }
You can’t perform that action at this time.
0 commit comments