Browse Source

Polishing

pull/493/merge
Juergen Hoeller 11 years ago
parent
commit
03ce4a5024
  1. 10
      spring-aop/src/main/java/org/springframework/aop/framework/ProxyProcessorSupport.java
  2. 14
      spring-core/src/main/java/org/springframework/asm/Type.java

10
spring-aop/src/main/java/org/springframework/aop/framework/ProxyProcessorSupport.java

@ -51,7 +51,7 @@ public class ProxyProcessorSupport extends ProxyConfig implements Ordered, BeanC
* Set the ordering which will apply to this class's implementation * Set the ordering which will apply to this class's implementation
* of Ordered, used when applying multiple processors. * of Ordered, used when applying multiple processors.
* <p>Default value is {@code Integer.MAX_VALUE}, meaning that it's non-ordered. * <p>Default value is {@code Integer.MAX_VALUE}, meaning that it's non-ordered.
* @param order ordering value * @param order the ordering value
*/ */
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
@ -64,9 +64,9 @@ public class ProxyProcessorSupport extends ProxyConfig implements Ordered, BeanC
/** /**
* Set the ClassLoader to generate the proxy class in. * Set the ClassLoader to generate the proxy class in.
* <p>Default is the bean ClassLoader, i.e. the ClassLoader used by the * <p>Default is the bean ClassLoader, i.e. the ClassLoader used by the containing
* containing BeanFactory for loading all bean classes. This can be * {@link org.springframework.beans.factory.BeanFactory} for loading all bean classes.
* overridden here for specific proxies. * This can be overridden here for specific proxies.
*/ */
public void setProxyClassLoader(ClassLoader classLoader) { public void setProxyClassLoader(ClassLoader classLoader) {
this.proxyClassLoader = classLoader; this.proxyClassLoader = classLoader;
@ -89,7 +89,7 @@ public class ProxyProcessorSupport extends ProxyConfig implements Ordered, BeanC
/** /**
* Check the interfaces on the given bean class and apply them to the ProxyFactory, * Check the interfaces on the given bean class and apply them to the {@link ProxyFactory},
* if appropriate. * if appropriate.
* <p>Calls {@link #isConfigurationCallbackInterface} and {@link #isInternalLanguageInterface} * <p>Calls {@link #isConfigurationCallbackInterface} and {@link #isInternalLanguageInterface}
* to filter for reasonable proxy interfaces, falling back to a target-class proxy otherwise. * to filter for reasonable proxy interfaces, falling back to a target-class proxy otherwise.

14
spring-core/src/main/java/org/springframework/asm/Type.java

@ -657,20 +657,20 @@ public class Type {
* Appends the descriptor corresponding to this Java type to the given * Appends the descriptor corresponding to this Java type to the given
* string builder. * string builder.
* *
* @param buf * @param sb
* the string builder to which the descriptor must be appended. * the string builder to which the descriptor must be appended.
*/ */
private void getDescriptor(final StringBuilder buf) { private void getDescriptor(final StringBuilder sb) {
if (this.buf == null) { if (this.buf == null) {
// descriptor is in byte 3 of 'off' for primitive types (buf == // descriptor is in byte 3 of 'off' for primitive types (buf ==
// null) // null)
buf.append((char) ((off & 0xFF000000) >>> 24)); sb.append((char) ((off & 0xFF000000) >>> 24));
} else if (sort == OBJECT) { } else if (sort == OBJECT) {
buf.append('L'); sb.append('L');
buf.append(this.buf, off, len); sb.append(this.buf, off, len);
buf.append(';'); sb.append(';');
} else { // sort == ARRAY || sort == METHOD } else { // sort == ARRAY || sort == METHOD
buf.append(this.buf, off, len); sb.append(this.buf, off, len);
} }
} }

Loading…
Cancel
Save