Skip to content

Commit

Permalink
fix wording issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsanjaymalakar committed May 3, 2024
1 parent df05ad2 commit e3b857c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ private boolean areSame(JavaExpression target, @Nullable JavaExpression enclosin
* @param obligations the current set of Obligations, which may be side-effected
* @param node the invocation node to check; must be {@link MethodInvocationNode} or {@link
* ObjectCreationNode}
* @param isMustCallInference true if this call is invoked as part of a MustCall inference
* @param isMustCallInference true if this method is invoked as part of a MustCall inference
* @return true iff the result of {@code node} should be tracked in {@code obligations}
*/
public boolean shouldTrackInvocationResult(
Expand All @@ -941,7 +941,7 @@ public boolean shouldTrackInvocationResult(
// Now callTree.getKind() == Tree.Kind.METHOD_INVOCATION.
MethodInvocationTree methodInvokeTree = (MethodInvocationTree) callTree;

// For must call inference, we do not want to bail-out on tracking the obligations for 'this()'
// For must call inference, we do not want to bail out on tracking the obligations for 'this()'
// or 'super()' calls because this tracking is necessary to correctly infer the @MustCallAlias
// annotation for the constructor and its aliasing parameter.
if (!isMustCallInference
Expand Down

0 comments on commit e3b857c

Please sign in to comment.