Avoid synchronization in AbstractAspectJAdvice#calculateArgumentBindings

Aligned with the early calculateArgumentBindings call in ReflectiveAspectJAdvisorFactory.

Closes gh-26377
This commit is contained in:
Juergen Hoeller 2022-07-13 16:47:35 +02:00
parent bd3499671c
commit 8e5c4903d4
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2020 the original author or authors. * Copyright 2002-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -368,7 +368,7 @@ public abstract class AbstractAspectJAdvice implements Advice, AspectJPrecedence
* to which argument name. There are multiple strategies for determining * to which argument name. There are multiple strategies for determining
* this binding, which are arranged in a ChainOfResponsibility. * this binding, which are arranged in a ChainOfResponsibility.
*/ */
public final synchronized void calculateArgumentBindings() { public final void calculateArgumentBindings() {
// The simple case... nothing to bind. // The simple case... nothing to bind.
if (this.argumentsIntrospected || this.parameterTypes.length == 0) { if (this.argumentsIntrospected || this.parameterTypes.length == 0) {
return; return;