Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/main/java/org/microbean/construct/DefaultDomain.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,18 @@ public List<? extends UniversalType> directSupertypes(TypeMirror t) {
}

@Override // Domain
public Element element(TypeMirror t) {
public UniversalElement element(TypeMirror t) {
t = unwrap(t);
try (var lock = lock()) {
return UniversalElement.of(this.types().asElement(t), this);
}
}

@Override // Domain
public UniversalType elementType(final TypeMirror t) {
return UniversalType.of(Domain.super.elementType(t), this);
}

private final Elements elements() {
return this.pe().getElementUtils();
}
Expand Down Expand Up @@ -428,7 +433,7 @@ public UniversalType rawType(final TypeMirror t) {

// (Canonical.)
@Override // Domain
public RecordComponentElement recordComponentElement(ExecutableElement e) {
public UniversalElement recordComponentElement(ExecutableElement e) {
e = unwrap(e);
try (var lock = lock()) {
return UniversalElement.of(this.elements().recordComponentFor(e), this);
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/microbean/construct/Processor.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public final void init(final ProcessingEnvironment pe) {
this.c.awaitUninterruptibly();
}
} finally {
System.out.println("in finally block; running cleanup");
this.r.run();
this.lock.unlock();
}
Expand Down
Loading