Skip to content

Commit 6ac3ff2

Browse files
ensure RecordIndexingVisitor is cleared in visitEnd
1 parent b03cf64 commit 6ac3ff2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enigma/src/main/java/org/quiltmc/enigma/impl/plugin/RecordIndexingVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ public void visitEnd() {
9898
super.visitEnd();
9999
try {
100100
this.collectResults();
101-
101+
} catch (Exception ex) {
102+
throw new RuntimeException(ex);
103+
} finally {
102104
this.clazz = null;
103105
this.recordComponents.clear();
104106
this.fields.clear();
105107
this.methods.clear();
106-
} catch (Exception ex) {
107-
throw new RuntimeException(ex);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)