8000 Directly call SignaturePath constructor with parent · sakerbuild/saker.java.compiler@cf33eb4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf33eb4

Browse files
committed
Directly call SignaturePath constructor with parent
1 parent 53900d7 commit cf33eb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

impl-util-jdk8/src/main/saker/java/compiler/util8/impl/parser/signature/CompilationUnitSignatureParser8.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,11 @@ public ParseContext(ParserCache cache) {
187187
}
188188

189189
public SignaturePath pushSignaturePath() {
190-
SignaturePath result = new SignaturePath();
190+
SignaturePath result;
191191
if (!signaturePathStack.isEmpty()) {
192-
result.setParent(signaturePathStack.getLast());
192+
result = new SignaturePath(signaturePathStack.getLast());
193+
} else {
194+
result = new SignaturePath();
193195
}
194196
signaturePathStack.addLast(result);
195197
return result;

0 commit comments

Comments
 (0)
0