From b9a3d3f392e796ab81bc5be92d9960e7b49fd5a2 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 7 Jan 2010 23:29:13 +0000 Subject: [PATCH] polishing --- .../expression/BeanExpressionContextAccessor.java | 6 +++--- .../context/support/DefaultLifecycleProcessor.java | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java b/org.springframework.context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java index 9dfad8f146..89bc6b6a43 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java +++ b/org.springframework.context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ import org.springframework.expression.TypedValue; public class BeanExpressionContextAccessor implements PropertyAccessor { public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException { - return (((BeanExpressionContext) target).containsObject(name)); + return ((BeanExpressionContext) target).containsObject(name); } public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException { @@ -52,4 +52,4 @@ public class BeanExpressionContextAccessor implements PropertyAccessor { return new Class[] {BeanExpressionContext.class}; } -} \ No newline at end of file +} diff --git a/org.springframework.context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java b/org.springframework.context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java index fda1cfec80..dea286af46 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java +++ b/org.springframework.context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java @@ -274,21 +274,20 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor private final long timeout; - - LifecycleGroup(int phase, long timeout, Map lifecycleBeans) { + public LifecycleGroup(int phase, long timeout, Map lifecycleBeans) { this.phase = phase; this.timeout = timeout; this.lifecycleBeans = lifecycleBeans; } - void add(String name, Lifecycle bean) { + public void add(String name, Lifecycle bean) { if (bean instanceof SmartLifecycle) { this.smartMemberCount++; } this.members.add(new LifecycleGroupMember(name, bean)); } - void start() { + public void start() { if (members.size() == 0) { return; } @@ -300,7 +299,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor } } - void stop() { + public void stop() { if (members.size() == 0) { return; }