Polish formatting

Minor formatting polish across that codebase. Primarily fixing
whitespace issues.
This commit is contained in:
Phillip Webb 2013-02-01 10:14:01 -08:00
parent 0a6da1e42d
commit f464a45ba4
114 changed files with 124 additions and 127 deletions

View File

@ -282,8 +282,8 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
return false; return false;
} }
else { else {
// the maybe case // the maybe case
return (beanHasIntroductions || matchesIgnoringSubtypes(shadowMatch) || matchesTarget(shadowMatch, targetClass)); return (beanHasIntroductions || matchesIgnoringSubtypes(shadowMatch) || matchesTarget(shadowMatch, targetClass));
} }
} }

View File

@ -64,8 +64,8 @@ public abstract class AspectJProxyUtils {
*/ */
private static boolean isAspectJAdvice(Advisor advisor) { private static boolean isAspectJAdvice(Advisor advisor) {
return (advisor instanceof InstantiationModelAwarePointcutAdvisor || return (advisor instanceof InstantiationModelAwarePointcutAdvisor ||
advisor.getAdvice() instanceof AbstractAspectJAdvice || advisor.getAdvice() instanceof AbstractAspectJAdvice ||
(advisor instanceof PointcutAdvisor && (advisor instanceof PointcutAdvisor &&
((PointcutAdvisor) advisor).getPointcut() instanceof AspectJExpressionPointcut)); ((PointcutAdvisor) advisor).getPointcut() instanceof AspectJExpressionPointcut));
} }

View File

@ -63,8 +63,8 @@ class InstantiationModelAwarePointcutAdvisorImpl
private Boolean isAfterAdvice; private Boolean isAfterAdvice;
public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af, AspectJExpressionPointcut ajexp, public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af, AspectJExpressionPointcut ajexp,
MetadataAwareAspectInstanceFactory aif, Method method, int declarationOrderInAspect, String aspectName) { MetadataAwareAspectInstanceFactory aif, Method method, int declarationOrderInAspect, String aspectName) {
this.declaredPointcut = ajexp; this.declaredPointcut = ajexp;
this.method = method; this.method = method;

View File

@ -152,11 +152,11 @@ public abstract class AbstractAutoProxyCreator extends ProxyConfig
* @param order ordering value * @param order ordering value
*/ */
public final void setOrder(int order) { public final void setOrder(int order) {
this.order = order; this.order = order;
} }
public final int getOrder() { public final int getOrder() {
return this.order; return this.order;
} }
/** /**

View File

@ -95,7 +95,7 @@ public class DelegatingIntroductionInterceptor extends IntroductionInfoSupport
/** /**
* Subclasses may need to override this if they want to perform custom * Subclasses may need to override this if they want to perform custom
* behaviour in around advice. However, subclasses should invoke this * behaviour in around advice. However, subclasses should invoke this
* method, which handles introduced interfaces and forwarding to the target. * method, which handles introduced interfaces and forwarding to the target.
*/ */

View File

@ -139,7 +139,7 @@ public final class MethodInvocationProceedingJoinPointTests {
@Override @Override
public void before(Method method, Object[] args, Object target) throws Throwable { public void before(Method method, Object[] args, Object target) throws Throwable {
SourceLocation sloc = AbstractAspectJAdvice.currentJoinPoint().getSourceLocation(); SourceLocation sloc = AbstractAspectJAdvice.currentJoinPoint().getSourceLocation();
assertEquals("Same source location must be returned on subsequent requests", sloc, AbstractAspectJAdvice.currentJoinPoint().getSourceLocation()); assertEquals("Same source location must be returned on subsequent requests", sloc, AbstractAspectJAdvice.currentJoinPoint().getSourceLocation());
assertEquals(TestBean.class, sloc.getWithinType()); assertEquals(TestBean.class, sloc.getWithinType());
try { try {
sloc.getLine(); sloc.getLine();
@ -172,7 +172,7 @@ public final class MethodInvocationProceedingJoinPointTests {
@Override @Override
public void before(Method method, Object[] args, Object target) throws Throwable { public void before(Method method, Object[] args, Object target) throws Throwable {
StaticPart staticPart = AbstractAspectJAdvice.currentJoinPoint().getStaticPart(); StaticPart staticPart = AbstractAspectJAdvice.currentJoinPoint().getStaticPart();
assertEquals("Same static part must be returned on subsequent requests", staticPart, AbstractAspectJAdvice.currentJoinPoint().getStaticPart()); assertEquals("Same static part must be returned on subsequent requests", staticPart, AbstractAspectJAdvice.currentJoinPoint().getStaticPart());
assertEquals(ProceedingJoinPoint.METHOD_EXECUTION, staticPart.getKind()); assertEquals(ProceedingJoinPoint.METHOD_EXECUTION, staticPart.getKind());
assertSame(AbstractAspectJAdvice.currentJoinPoint().getSignature(), staticPart.getSignature()); assertSame(AbstractAspectJAdvice.currentJoinPoint().getSignature(), staticPart.getSignature());
assertEquals(AbstractAspectJAdvice.currentJoinPoint().getSourceLocation(), staticPart.getSourceLocation()); assertEquals(AbstractAspectJAdvice.currentJoinPoint().getSourceLocation(), staticPart.getSourceLocation());

View File

@ -940,7 +940,7 @@ abstract class AbstractMakeModifiable {
} }
// Find the current raw value, by invoking the corresponding setter // Find the current raw value, by invoking the corresponding setter
Method correspondingGetter = getGetterFromSetter(((MethodSignature) jp.getSignature()).getMethod()); Method correspondingGetter = getGetterFromSetter(((MethodSignature) jp.getSignature()).getMethod());
boolean modified = true; boolean modified = true;
if (correspondingGetter != null) { if (correspondingGetter != null) {
try { try {

View File

@ -137,4 +137,4 @@ public final class AopProxyUtilsTests {
AopProxyUtils.proxiedUserInterfaces(proxy); AopProxyUtils.proxiedUserInterfaces(proxy);
} }
} }

View File

@ -63,7 +63,6 @@ public final class PrototypeTargetTests {
assertEquals(10, interceptor.invocationCount); assertEquals(10, interceptor.invocationCount);
} }
public static interface TestBean { public static interface TestBean {
public void doSomething(); public void doSomething();
} }

View File

@ -44,7 +44,7 @@ public final class ExposeInvocationInterceptorTests {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory(); DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
new XmlBeanDefinitionReader(bf).loadBeanDefinitions(CONTEXT); new XmlBeanDefinitionReader(bf).loadBeanDefinitions(CONTEXT);
ITestBean tb = (ITestBean) bf.getBean("proxy"); ITestBean tb = (ITestBean) bf.getBean("proxy");
String name= "tony"; String name = "tony";
tb.setName(name); tb.setName(name);
// Fires context checks // Fires context checks
assertEquals(name, tb.getName()); assertEquals(name, tb.getName());

View File

@ -33,4 +33,4 @@ public class CountingAfterReturningAdvice extends MethodCounter implements After
count(m); count(m);
} }
} }

View File

@ -24,4 +24,4 @@ public class MyThrowsHandler extends MethodCounter implements ThrowsAdvice {
public void afterThrowing(Method m, Exception ex) throws Throwable { public void afterThrowing(Method m, Exception ex) throws Throwable {
throw new UnsupportedOperationException("Shouldn't be called"); throw new UnsupportedOperationException("Shouldn't be called");
} }
} }

View File

@ -25,4 +25,4 @@ import java.lang.annotation.Target;
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface EmptySpringAnnotation { public @interface EmptySpringAnnotation {
} }

View File

@ -30,4 +30,4 @@ public interface Lockable {
void unlock(); void unlock();
boolean locked(); boolean locked();
} }

View File

@ -33,4 +33,4 @@ public class PerTargetAspect implements Ordered {
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
} }
} }

View File

@ -34,4 +34,4 @@ public class TwoAdviceAspect {
public void countSet(int newAge) throws Exception { public void countSet(int newAge) throws Exception {
++totalCalls; ++totalCalls;
} }
} }

View File

@ -29,7 +29,7 @@ import org.springframework.context.annotation.Role;
* Configurable}. * Configurable}.
* *
* <p>This configuration class is automatically imported when using the @{@link * <p>This configuration class is automatically imported when using the @{@link
* EnableSpringConfigured} annotation. See {@code @EnableSpringConfigured} Javadoc for * EnableSpringConfigured} annotation. See {@code @EnableSpringConfigured} Javadoc for
* complete usage details. * complete usage details.
* *
* @author Chris Beams * @author Chris Beams

View File

@ -30,4 +30,4 @@ public class SpringConfiguredWithAutoProxyingTests extends TestCase {
public void testSpringConfiguredAndAutoProxyUsedTogether() { public void testSpringConfiguredAndAutoProxyUsedTogether() {
; // set up is sufficient to trigger failure if this is going to fail... ; // set up is sufficient to trigger failure if this is going to fail...
} }
} }

View File

@ -135,4 +135,4 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
public Object multiUpdate(Object arg1) { public Object multiUpdate(Object arg1) {
return arg1; return arg1;
} }
} }

View File

@ -67,4 +67,4 @@ public interface CacheableService<T> {
T multiConditionalCacheAndEvict(Object arg1); T multiConditionalCacheAndEvict(Object arg1);
T multiUpdate(Object arg1); T multiUpdate(Object arg1);
} }

View File

@ -699,7 +699,7 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
return nestedBw.getPropertyValue(tokens); return nestedBw.getPropertyValue(tokens);
} }
private Object getPropertyValue(PropertyTokenHolder tokens) throws BeansException { private Object getPropertyValue(PropertyTokenHolder tokens) throws BeansException {
String propertyName = tokens.canonicalName; String propertyName = tokens.canonicalName;
String actualName = tokens.actualName; String actualName = tokens.actualName;
PropertyDescriptor pd = getCachedIntrospectionResults().getPropertyDescriptor(actualName); PropertyDescriptor pd = getCachedIntrospectionResults().getPropertyDescriptor(actualName);

View File

@ -19,7 +19,7 @@ package org.springframework.beans.factory;
/** /**
* Marker superinterface indicating that a bean is eligible to be * Marker superinterface indicating that a bean is eligible to be
* notified by the Spring container of a particular framework object * notified by the Spring container of a particular framework object
* through a callback-style method. Actual method signature is * through a callback-style method. Actual method signature is
* determined by individual subinterfaces, but should typically * determined by individual subinterfaces, but should typically
* consist of just one void-returning method that accepts a single * consist of just one void-returning method that accepts a single
* argument. * argument.

View File

@ -196,11 +196,11 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
} }
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
} }
public int getOrder() { public int getOrder() {
return this.order; return this.order;
} }
public void setBeanFactory(BeanFactory beanFactory) throws BeansException { public void setBeanFactory(BeanFactory beanFactory) throws BeansException {

View File

@ -109,11 +109,11 @@ public class InitDestroyAnnotationBeanPostProcessor
} }
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
} }
public int getOrder() { public int getOrder() {
return this.order; return this.order;
} }

View File

@ -123,11 +123,11 @@ public class RequiredAnnotationBeanPostProcessor extends InstantiationAwareBeanP
} }
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
} }
public int getOrder() { public int getOrder() {
return this.order; return this.order;
} }

View File

@ -116,11 +116,11 @@ public class CustomEditorConfigurer implements BeanFactoryPostProcessor, BeanCla
public void setOrder(int order) { public void setOrder(int order) {
this.order = order; this.order = order;
} }
public int getOrder() { public int getOrder() {
return this.order; return this.order;
} }
/** /**

View File

@ -80,7 +80,7 @@ public class RuntimeBeanNameReference implements BeanReference {
@Override @Override
public String toString() { public String toString() {
return '<' + getBeanName() + '>'; return '<' + getBeanName() + '>';
} }
} }

View File

@ -107,7 +107,7 @@ public class RuntimeBeanReference implements BeanReference {
@Override @Override
public String toString() { public String toString() {
return '<' + getBeanName() + '>'; return '<' + getBeanName() + '>';
} }
} }

View File

@ -30,7 +30,7 @@ import org.springframework.util.ObjectUtils;
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0 * @since 2.0
*/ */
public class BeanDefinitionBuilder { public class BeanDefinitionBuilder {
/** /**
* Create a new {@code BeanDefinitionBuilder} used to construct a {@link GenericBeanDefinition}. * Create a new {@code BeanDefinitionBuilder} used to construct a {@link GenericBeanDefinition}.

View File

@ -888,4 +888,4 @@ class ConstructorResolver {
} }
} }
} }
} }

View File

@ -736,7 +736,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
//--------------------------------------------------------------------- //---------------------------------------------------------------------
public Object resolveDependency(DependencyDescriptor descriptor, String beanName, public Object resolveDependency(DependencyDescriptor descriptor, String beanName,
Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException { Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException {
descriptor.initParameterNameDiscovery(getParameterNameDiscoverer()); descriptor.initParameterNameDiscovery(getParameterNameDiscoverer());
if (descriptor.getDependencyType().equals(ObjectFactory.class)) { if (descriptor.getDependencyType().equals(ObjectFactory.class)) {
@ -751,7 +751,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
} }
protected Object doResolveDependency(DependencyDescriptor descriptor, Class<?> type, String beanName, protected Object doResolveDependency(DependencyDescriptor descriptor, Class<?> type, String beanName,
Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException { Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException {
Object value = getAutowireCandidateResolver().getSuggestedValue(descriptor); Object value = getAutowireCandidateResolver().getSuggestedValue(descriptor);
if (value != null) { if (value != null) {

View File

@ -47,7 +47,7 @@ import org.springframework.util.ClassUtils;
* @see #setBeanWiringInfoResolver * @see #setBeanWiringInfoResolver
* @see ClassNameBeanWiringInfoResolver * @see ClassNameBeanWiringInfoResolver
*/ */
public class BeanConfigurerSupport implements BeanFactoryAware, InitializingBean, DisposableBean { public class BeanConfigurerSupport implements BeanFactoryAware, InitializingBean, DisposableBean {
/** Logger available to subclasses */ /** Logger available to subclasses */
protected final Log logger = LogFactory.getLog(getClass()); protected final Log logger = LogFactory.getLog(getClass());

View File

@ -92,7 +92,7 @@ public class DelegatingEntityResolver implements EntityResolver {
@Override @Override
public String toString() { public String toString() {
return "EntityResolver delegating " + XSD_SUFFIX + " to " + this.schemaResolver + return "EntityResolver delegating " + XSD_SUFFIX + " to " + this.schemaResolver +
" and " + DTD_SUFFIX + " to " + this.dtdResolver; " and " + DTD_SUFFIX + " to " + this.dtdResolver;
} }
} }

View File

@ -148,4 +148,4 @@ public class SimpleConstructorNamespaceHandler implements NamespaceHandler {
} }
return false; return false;
} }
} }

View File

@ -173,7 +173,7 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe
private DataSource nonTransactionalDataSource; private DataSource nonTransactionalDataSource;
private Map schedulerContextMap; private Map schedulerContextMap;
private ApplicationContext applicationContext; private ApplicationContext applicationContext;

View File

@ -470,4 +470,4 @@ public abstract class CacheAspectSupport implements InitializingBean {
return this.caches; return this.caches;
} }
} }
} }

View File

@ -89,4 +89,4 @@ class ExpressionEvaluator {
sb.append(expression); sb.append(expression);
return sb.toString(); return sb.toString();
} }
} }

View File

@ -117,4 +117,4 @@ class LazyParamAwareEvaluationContext extends StandardEvaluationContext {
sb.append(m.toString()); sb.append(m.toString());
return sb.toString(); return sb.toString();
} }
} }

View File

@ -29,4 +29,4 @@ package org.springframework.context.annotation;
public enum AdviceMode { public enum AdviceMode {
PROXY, PROXY,
ASPECTJ ASPECTJ
} }

View File

@ -725,4 +725,4 @@ public class CommonAnnotationBeanPostProcessor extends InitDestroyAnnotationBean
} }
} }
} }

View File

@ -110,4 +110,4 @@ public @interface EnableAspectJAutoProxy {
*/ */
boolean proxyTargetClass() default false; boolean proxyTargetClass() default false;
} }

View File

@ -60,4 +60,4 @@ public interface ImportBeanDefinitionRegistrar {
public void registerBeanDefinitions( public void registerBeanDefinitions(
AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry); AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry);
} }

View File

@ -44,4 +44,4 @@ class PropertyOverrideBeanDefinitionParser extends AbstractPropertyLoadingBeanDe
} }
} }

View File

@ -135,7 +135,7 @@ public class ResourceBundleMessageSource extends AbstractMessageSource implement
* @see #setBasename * @see #setBasename
* @see java.util.ResourceBundle#getBundle(String) * @see java.util.ResourceBundle#getBundle(String)
*/ */
public void setBasenames(String... basenames) { public void setBasenames(String... basenames) {
if (basenames != null) { if (basenames != null) {
this.basenames = new String[basenames.length]; this.basenames = new String[basenames.length];
for (int i = 0; i < basenames.length; i++) { for (int i = 0; i < basenames.length; i++) {

View File

@ -110,7 +110,7 @@ public class SimpleRemoteSlsbInvokerInterceptor extends AbstractRemoteSlsbInvoke
} }
else if (targetEx instanceof CreateException) { else if (targetEx instanceof CreateException) {
throw RmiClientInterceptorUtils.convertRmiAccessException( throw RmiClientInterceptorUtils.convertRmiAccessException(
invocation.getMethod(), targetEx, "Could not create remote EJB [" + getJndiName() + "]"); invocation.getMethod(), targetEx, "Could not create remote EJB [" + getJndiName() + "]");
} }
throw targetEx; throw targetEx;
} }

View File

@ -195,7 +195,7 @@ public class FormattingConversionService extends GenericConversionService
private Class<? extends Annotation> annotationType; private Class<? extends Annotation> annotationType;
private AnnotationFormatterFactory annotationFormatterFactory; private AnnotationFormatterFactory annotationFormatterFactory;
private Class<?> fieldType; private Class<?> fieldType;

View File

@ -116,7 +116,7 @@ public class FormattingConversionServiceFactoryBean
/** /**
* Indicate whether default formatters should be registered or not. * Indicate whether default formatters should be registered or not.
* <p>By default, built-in formatters are registered. This flag can be used * <p>By default, built-in formatters are registered. This flag can be used
* to turn that off and rely on explicitly registered formatters only. * to turn that off and rely on explicitly registered formatters only.
* @see #setFormatters(Set) * @see #setFormatters(Set)
* @see #setFormatterRegistrars(Set) * @see #setFormatterRegistrars(Set)
*/ */

View File

@ -135,4 +135,4 @@ public class ReflectiveLoadTimeWeaver implements LoadTimeWeaver {
return new SimpleThrowawayClassLoader(this.classLoader); return new SimpleThrowawayClassLoader(this.classLoader);
} }
} }
} }

View File

@ -29,7 +29,7 @@ import org.springframework.core.OverridingClassLoader;
* @author Costin Leau * @author Costin Leau
* @since 2.0 * @since 2.0
*/ */
public class SimpleInstrumentableClassLoader extends OverridingClassLoader { public class SimpleInstrumentableClassLoader extends OverridingClassLoader {
private final WeavingTransformer weavingTransformer; private final WeavingTransformer weavingTransformer;

View File

@ -142,4 +142,4 @@ class JBossMCAdapter implements JBossClassLoaderAdapter {
public ClassLoader getInstrumentableClassLoader() { public ClassLoader getInstrumentableClassLoader() {
return classLoader; return classLoader;
} }
} }

View File

@ -79,4 +79,4 @@ class JBossMCTranslatorAdapter implements InvocationHandler {
builder.append(this.transformer); builder.append(this.transformer);
return builder.toString(); return builder.toString();
} }
} }

View File

@ -68,4 +68,4 @@ class JBossModulesAdapter implements JBossClassLoaderAdapter {
public ClassLoader getInstrumentableClassLoader() { public ClassLoader getInstrumentableClassLoader() {
return classLoader; return classLoader;
} }
} }

View File

@ -85,4 +85,4 @@ class OC4JClassLoaderAdapter {
throw new IllegalStateException("Could not copy OC4J classloader", ex); throw new IllegalStateException("Could not copy OC4J classloader", ex);
} }
} }
} }

View File

@ -92,4 +92,4 @@ class OC4JClassPreprocessorAdapter implements InvocationHandler {
builder.append(this.transformer); builder.append(this.transformer);
return builder.toString(); return builder.toString();
} }
} }

View File

@ -76,5 +76,4 @@ public class OC4JLoadTimeWeaver implements LoadTimeWeaver {
public ClassLoader getThrowawayClassLoader() { public ClassLoader getThrowawayClassLoader() {
return this.classLoader.getThrowawayClassLoader(); return this.classLoader.getThrowawayClassLoader();
} }
} }

View File

@ -110,4 +110,4 @@ class WebLogicClassLoaderAdapter {
throw new IllegalStateException("Could not construct WebLogic GenericClassLoader", ex); throw new IllegalStateException("Could not construct WebLogic GenericClassLoader", ex);
} }
} }
} }

View File

@ -87,4 +87,4 @@ class WebLogicClassPreProcessorAdapter implements InvocationHandler {
builder.append(this.transformer); builder.append(this.transformer);
return builder.toString(); return builder.toString();
} }
} }

View File

@ -69,4 +69,4 @@ public class WebLogicLoadTimeWeaver implements LoadTimeWeaver {
public ClassLoader getThrowawayClassLoader() { public ClassLoader getThrowawayClassLoader() {
return this.classLoader.getThrowawayClassLoader(); return this.classLoader.getThrowawayClassLoader();
} }
} }

View File

@ -58,7 +58,7 @@ public class SpringModelMBean extends RequiredModelMBean {
* Construct a new SpringModelMBean instance with the given {@link ModelMBeanInfo}. * Construct a new SpringModelMBean instance with the given {@link ModelMBeanInfo}.
* @see javax.management.modelmbean.RequiredModelMBean#RequiredModelMBean(ModelMBeanInfo) * @see javax.management.modelmbean.RequiredModelMBean#RequiredModelMBean(ModelMBeanInfo)
*/ */
public SpringModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException { public SpringModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException {
super(mbi); super(mbi);
} }

View File

@ -345,7 +345,7 @@ public class RmiClientInterceptor extends RemoteInvocationBasedAccessor
} }
catch (RemoteException ex) { catch (RemoteException ex) {
throw RmiClientInterceptorUtils.convertRmiAccessException( throw RmiClientInterceptorUtils.convertRmiAccessException(
invocation.getMethod(), ex, isConnectFailure(ex), getServiceUrl()); invocation.getMethod(), ex, isConnectFailure(ex), getServiceUrl());
} }
catch (InvocationTargetException ex) { catch (InvocationTargetException ex) {
Throwable exToThrow = ex.getTargetException(); Throwable exToThrow = ex.getTargetException();
@ -389,7 +389,7 @@ public class RmiClientInterceptor extends RemoteInvocationBasedAccessor
* @see org.springframework.remoting.support.RemoteInvocation * @see org.springframework.remoting.support.RemoteInvocation
*/ */
protected Object doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler) protected Object doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler)
throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
if (AopUtils.isToStringMethod(methodInvocation.getMethod())) { if (AopUtils.isToStringMethod(methodInvocation.getMethod())) {
return "RMI invoker proxy for service URL [" + getServiceUrl() + "]"; return "RMI invoker proxy for service URL [" + getServiceUrl() + "]";

View File

@ -456,4 +456,4 @@ public class RmiServiceExporter extends RmiBasedExporter implements Initializing
} }
} }
} }
} }

View File

@ -81,7 +81,7 @@ public abstract class JRubyScriptUtils {
Node scriptRootNode = ruby.parseEval(scriptSource, "", null, 0); Node scriptRootNode = ruby.parseEval(scriptSource, "", null, 0);
// keep using the deprecated runNormally variant for JRuby 1.1/1.2 compatibility... // keep using the deprecated runNormally variant for JRuby 1.1/1.2 compatibility...
IRubyObject rubyObject = ruby.runNormally(scriptRootNode, false); IRubyObject rubyObject = ruby.runNormally(scriptRootNode, false);
if (rubyObject instanceof RubyNil) { if (rubyObject instanceof RubyNil) {
String className = findClassName(scriptRootNode); String className = findClassName(scriptRootNode);

View File

@ -126,4 +126,4 @@ public class ResourceScriptSource implements ScriptSource {
public String toString() { public String toString() {
return this.resource.toString(); return this.resource.toString();
} }
} }

View File

@ -45,4 +45,4 @@ public class NamedInheritableThreadLocal<T> extends InheritableThreadLocal<T> {
return this.name; return this.name;
} }
} }

View File

@ -41,4 +41,4 @@ public class MapPropertySource extends EnumerablePropertySource<Map<String, Obje
return this.source.keySet().toArray(EMPTY_NAMES_ARRAY); return this.source.keySet().toArray(EMPTY_NAMES_ARRAY);
} }
} }

View File

@ -83,4 +83,4 @@ class SimpleCommandLineArgsParser {
return commandLineArgs; return commandLineArgs;
} }
} }

View File

@ -257,4 +257,4 @@ public abstract class VfsUtils {
protected static String doGetPath(Object resource) { protected static String doGetPath(Object resource) {
return (String) ReflectionUtils.invokeMethod(VIRTUAL_FILE_METHOD_GET_PATH_NAME, resource); return (String) ReflectionUtils.invokeMethod(VIRTUAL_FILE_METHOD_GET_PATH_NAME, resource);
} }
} }

View File

@ -258,4 +258,4 @@ final class AnnotationAttributesReadingVisitor extends RecursiveAnnotationAttrib
this.metaAnnotationMap.put(annotationClass.getName(), metaAnnotationTypeNames); this.metaAnnotationMap.put(annotationClass.getName(), metaAnnotationTypeNames);
} }
} }
} }

View File

@ -97,4 +97,4 @@ final class MethodMetadataReadingVisitor extends MethodVisitor implements Method
public String getDeclaringClassName() { public String getDeclaringClassName() {
return this.declaringClassName; return this.declaringClassName;
} }
} }

View File

@ -72,4 +72,4 @@ public class CompositeIterator<E> implements Iterator<E> {
public void remove() { public void remove() {
throw new UnsupportedOperationException("Remove is not supported"); throw new UnsupportedOperationException("Remove is not supported");
} }
} }

View File

@ -43,4 +43,4 @@ public interface MethodFilter {
*/ */
List<Method> filter(List<Method> methods); List<Method> filter(List<Method> methods);
} }

View File

@ -36,6 +36,7 @@ public class CompoundExpression extends SpelNodeImpl {
} }
} }
@Override @Override
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException { protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
if (getChildCount()==1) { if (getChildCount()==1) {

View File

@ -70,7 +70,7 @@ public class Projection extends SpelNodeImpl {
if (operand instanceof Map) { if (operand instanceof Map) {
Map<?, ?> mapData = (Map<?, ?>) operand; Map<?, ?> mapData = (Map<?, ?>) operand;
List<Object> result = new ArrayList<Object>(); List<Object> result = new ArrayList<Object>();
for (Map.Entry<?,?> entry : mapData.entrySet()) { for (Map.Entry<?, ?> entry : mapData.entrySet()) {
try { try {
state.pushActiveContextObject(new TypedValue(entry)); state.pushActiveContextObject(new TypedValue(entry));
result.add(this.children[0].getValueInternal(state).getValue()); result.add(this.children[0].getValueInternal(state).getValue());

View File

@ -73,9 +73,9 @@ public class Selection extends SpelNodeImpl {
if (operand instanceof Map) { if (operand instanceof Map) {
Map<?, ?> mapdata = (Map<?, ?>) operand; Map<?, ?> mapdata = (Map<?, ?>) operand;
// TODO don't lose generic info for the new map // TODO don't lose generic info for the new map
Map<Object,Object> result = new HashMap<Object,Object>(); Map<Object, Object> result = new HashMap<Object, Object>();
Object lastKey = null; Object lastKey = null;
for (Map.Entry<?,?> entry : mapdata.entrySet()) { for (Map.Entry<?, ?> entry : mapdata.entrySet()) {
try { try {
TypedValue kvpair = new TypedValue(entry); TypedValue kvpair = new TypedValue(entry);
state.pushActiveContextObject(kvpair); state.pushActiveContextObject(kvpair);
@ -101,7 +101,7 @@ public class Selection extends SpelNodeImpl {
return new ValueRef.TypedValueHolderValueRef(new TypedValue(null),this); return new ValueRef.TypedValueHolderValueRef(new TypedValue(null),this);
} }
if (variant == LAST) { if (variant == LAST) {
Map<Object,Object> resultMap = new HashMap<Object,Object>(); Map<Object, Object> resultMap = new HashMap<Object, Object>();
Object lastValue = result.get(lastKey); Object lastValue = result.get(lastKey);
resultMap.put(lastKey,lastValue); resultMap.put(lastKey,lastValue);
return new ValueRef.TypedValueHolderValueRef(new TypedValue(resultMap),this); return new ValueRef.TypedValueHolderValueRef(new TypedValue(resultMap),this);

View File

@ -149,5 +149,4 @@ public abstract class SpelNodeImpl implements SpelNode {
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException { protected ValueRef getValueRef(ExpressionState state) throws EvaluationException {
throw new SpelEvaluationException(pos,SpelMessage.NOT_ASSIGNABLE,toStringAST()); throw new SpelEvaluationException(pos,SpelMessage.NOT_ASSIGNABLE,toStringAST());
} }
} }

View File

@ -84,4 +84,4 @@ class Token {
public Token asBetweenToken() { public Token asBetweenToken() {
return new Token(TokenKind.BETWEEN,startpos,endpos); return new Token(TokenKind.BETWEEN,startpos,endpos);
} }
} }

View File

@ -56,4 +56,4 @@ enum TokenKind {
public int getLength() { public int getLength() {
return tokenChars.length; return tokenChars.length;
} }
} }

View File

@ -75,4 +75,4 @@ public class CallParameterMetaData {
public boolean isNullable() { public boolean isNullable() {
return nullable; return nullable;
} }
} }

View File

@ -53,4 +53,4 @@ public class DerbyTableMetaDataProvider extends GenericTableMetaDataProvider {
} }
return derbysAnswer; return derbysAnswer;
} }
} }

View File

@ -59,4 +59,4 @@ final class HsqlEmbeddedDatabaseConfigurer extends AbstractEmbeddedDatabaseConfi
properties.setPassword(""); properties.setPassword("");
} }
} }

View File

@ -34,4 +34,4 @@ public interface GenericUnmarshaller extends Unmarshaller {
*/ */
boolean supports(Type genericType); boolean supports(Type genericType);
} }

View File

@ -25,4 +25,4 @@
* </ul> * </ul>
*/ */
@Deprecated @Deprecated
package org.springframework.web.struts; package org.springframework.web.struts;

View File

@ -125,4 +125,4 @@ public class MockClientDataRequest extends MockPortletRequest implements ClientD
return this.method; return this.method;
} }
} }

View File

@ -85,4 +85,4 @@ public class MockEvent implements Event {
return this.value; return this.value;
} }
} }

View File

@ -85,4 +85,4 @@ public class MockEventRequest extends MockPortletRequest implements EventRequest
return this.method; return this.method;
} }
} }

View File

@ -151,4 +151,4 @@ public class MockStateAwareResponse extends MockPortletResponse implements State
return this.events.get(new QName(name)); return this.events.get(new QName(name));
} }
} }

View File

@ -448,4 +448,4 @@ public class TestContextManager {
} }
} }
} }

View File

@ -74,4 +74,4 @@ final class CommonsClientHttpResponse extends AbstractClientHttpResponse {
this.httpMethod.releaseConnection(); this.httpMethod.releaseConnection();
} }
} }

View File

@ -43,5 +43,4 @@ public class RssChannelHttpMessageConverter extends AbstractWireFeedHttpMessageC
return Channel.class.isAssignableFrom(clazz); return Channel.class.isAssignableFrom(clazz);
} }
}
}

View File

@ -36,4 +36,4 @@ import java.lang.annotation.Target;
@Documented @Documented
public @interface ResponseBody { public @interface ResponseBody {
} }

View File

@ -37,4 +37,4 @@ public interface WebDataBinderFactory {
*/ */
WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName) throws Exception; WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName) throws Exception;
} }

View File

@ -69,4 +69,4 @@ public abstract class HandlerMethodSelector {
return handlerMethods; return handlerMethods;
} }
} }

View File

@ -71,4 +71,4 @@ public abstract class AbstractCookieValueMethodArgumentResolver extends Abstract
super(annotation.value(), annotation.required(), annotation.defaultValue()); super(annotation.value(), annotation.required(), annotation.defaultValue());
} }
} }
} }

View File

@ -76,4 +76,4 @@ public class ExpressionValueMethodArgumentResolver extends AbstractNamedValueMet
super("@Value", false, annotation.value()); super("@Value", false, annotation.value());
} }
} }
} }

View File

@ -243,4 +243,4 @@ public final class ModelFactory {
!(value instanceof Map) && !BeanUtils.isSimpleValueType(value.getClass())); !(value instanceof Map) && !BeanUtils.isSimpleValueType(value.getClass()));
} }
} }

View File

@ -87,4 +87,4 @@ public class RequestHeaderMethodArgumentResolver extends AbstractNamedValueMetho
super(annotation.value(), annotation.required(), annotation.defaultValue()); super(annotation.value(), annotation.required(), annotation.defaultValue());
} }
} }
} }

View File

@ -212,4 +212,4 @@ public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethod
super(annotation.value(), annotation.required(), annotation.defaultValue()); super(annotation.value(), annotation.required(), annotation.defaultValue());
} }
} }
} }

View File

@ -62,4 +62,4 @@ public interface HandlerMethodArgumentResolver {
NativeWebRequest webRequest, NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) throws Exception; WebDataBinderFactory binderFactory) throws Exception;
} }

View File

@ -58,4 +58,4 @@ public interface HandlerMethodReturnValueHandler {
ModelAndViewContainer mavContainer, ModelAndViewContainer mavContainer,
NativeWebRequest webRequest) throws Exception; NativeWebRequest webRequest) throws Exception;
} }

View File

@ -95,4 +95,4 @@ public class DefaultServletHandlerConfigurer {
return handlerMapping; return handlerMapping;
} }
} }

Some files were not shown because too many files have changed in this diff Show More