Browse Source

Polishing

pull/919/head
Juergen Hoeller 10 years ago
parent
commit
4b2ce60d65
  1. 1
      spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractBeanFactoryAwareAdvisingPostProcessor.java
  2. 2
      spring-core/src/main/java/org/springframework/util/FastByteArrayOutputStream.java

1
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractBeanFactoryAwareAdvisingPostProcessor.java

@ -28,6 +28,7 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; @@ -28,6 +28,7 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
* ({@link AutoProxyUtils#ORIGINAL_TARGET_CLASS_ATTRIBUTE}),
* and participates in an externally enforced target-class mode for any given bean
* ({@link AutoProxyUtils#PRESERVE_TARGET_CLASS_ATTRIBUTE}).
* This post-processor is therefore aligned with {@link AbstractAutoProxyCreator}.
*
* @author Juergen Hoeller
* @since 4.2.3

2
spring-core/src/main/java/org/springframework/util/FastByteArrayOutputStream.java

@ -263,7 +263,7 @@ public class FastByteArrayOutputStream extends OutputStream { @@ -263,7 +263,7 @@ public class FastByteArrayOutputStream extends OutputStream {
*/
public void resize(int targetCapacity) {
Assert.isTrue(targetCapacity >= size(), "New capacity must not be smaller than current size");
if (buffers.peekFirst() == null) {
if (this.buffers.peekFirst() == null) {
this.nextBlockSize = targetCapacity - size();
}
else if (size() == targetCapacity && this.buffers.getFirst().length == targetCapacity) {

Loading…
Cancel
Save