Skip to content

Commit

Permalink
Clean up style
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed May 15, 2024
1 parent 7e3a1e6 commit 9a5135a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ public void endVisit(JMethodCall x, Context ctx) {
// Passed as an array to varargs method will result in an apply call, in which case hoist the
// qualifier to make sure it is only evaluated once.
JExpression instance = x.getInstance();
if (x.getTarget().needsDynamicDispatch() && !x.isStaticDispatchOnly()
&& instance != null && !(instance instanceof JVariableRef && !instance.hasSideEffects())) {
if (x.getTarget().needsDynamicDispatch() && !x.isStaticDispatchOnly() && instance != null
&& !(instance instanceof JVariableRef && !instance.hasSideEffects())) {
// Move the potentially sideffecting qualifier to a temporary variable so that
// the code generation for calls that need .apply don't need to hande the case.
SourceInfo sourceInfo = x.getSourceInfo();
Expand Down

0 comments on commit 9a5135a

Please sign in to comment.