-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Polishing regarding JDK baseline upgrade #28440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@aooohan Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@aooohan Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting your first PR for the Spring Framework!
I've requested a few minor changes.
...main/java/org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator.java
Outdated
Show resolved
Hide resolved
spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java
Outdated
Show resolved
Hide resolved
spring-aop/src/main/java/org/springframework/aop/support/AbstractPointcutAdvisor.java
Outdated
Show resolved
Hide resolved
spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
Outdated
Show resolved
Hide resolved
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
Outdated
Show resolved
Hide resolved
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
Outdated
Show resolved
Hide resolved
…actPointcutAdvisor.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
…roxy/AspectJAwareAdvisorAutoProxyCreator.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
…xyFactoryBean.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
…establePropertyAccessor.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
…c/method/annotation/RequestMappingHandlerAdapter.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
…c/method/annotation/RequestMappingHandlerAdapter.java Co-authored-by: Sam Brannen <sbrannen@vmware.com>
@sbrannen I have updated it.Thank you for reviewing my pr |
spring-web/src/main/java/org/springframework/http/HttpMethod.java
Outdated
Show resolved
Hide resolved
@@ -366,7 +366,7 @@ private void enlarge(final int size) { | |||
} | |||
int doubleCapacity = 2 * data.length; | |||
int minimalCapacity = length + size; | |||
byte[] newData = new byte[doubleCapacity > minimalCapacity ? doubleCapacity : minimalCapacity]; | |||
byte[] newData = new byte[Math.max(doubleCapacity, minimalCapacity)]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed while merging that this is our repackaged ASM code.
Here's our policy:
Please refrain from modifying classes under
org.springframework.asm
,org.springframework.cglib
, andorg.springframework.objenesis
. Those include repackaged forks of the third-party libraries ASM, CGLIB, and Objenesis. Any refactoring to those classes should take place upstream in the originating repository. The Spring Framework will then pick up the changes when syncing with official updates of the forked third-party libraries.
So I'll revert that change locally.
No description provided.