Skip to content

Commit 59dca37

Browse files
authored
Improves Domain and DefaultDomain classes. Fixes spurious System.out message in Processor. (#14)
Signed-off-by: Laird Nelson <[email protected]>
1 parent 0dfe313 commit 59dca37

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/main/java/org/microbean/construct/DefaultDomain.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,18 @@ public List<? extends UniversalType> directSupertypes(TypeMirror t) {
272272
}
273273

274274
@Override // Domain
275-
public Element element(TypeMirror t) {
275+
public UniversalElement element(TypeMirror t) {
276276
t = unwrap(t);
277277
try (var lock = lock()) {
278278
return UniversalElement.of(this.types().asElement(t), this);
279279
}
280280
}
281281

282+
@Override // Domain
283+
public UniversalType elementType(final TypeMirror t) {
284+
return UniversalType.of(Domain.super.elementType(t), this);
285+
}
286+
282287
private final Elements elements() {
283288
return this.pe().getElementUtils();
284289
}
@@ -428,7 +433,7 @@ public UniversalType rawType(final TypeMirror t) {
428433

429434
// (Canonical.)
430435
@Override // Domain
431-
public RecordComponentElement recordComponentElement(ExecutableElement e) {
436+
public UniversalElement recordComponentElement(ExecutableElement e) {
432437
e = unwrap(e);
433438
try (var lock = lock()) {
434439
return UniversalElement.of(this.elements().recordComponentFor(e), this);

src/main/java/org/microbean/construct/Processor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public final void init(final ProcessingEnvironment pe) {
104104
this.c.awaitUninterruptibly();
105105
}
106106
} finally {
107-
System.out.println("in finally block; running cleanup");
108107
this.r.run();
109108
this.lock.unlock();
110109
}

0 commit comments

Comments
 (0)