Skip to content

Commit f8f6c5f

Browse files
committed
Polishing
1 parent 354917c commit f8f6c5f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

spring-context-support/src/main/java/org/springframework/scheduling/quartz/CronTriggerFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public void afterPropertiesSet() {
256256
this.cronTrigger = cti;
257257
*/
258258

259-
Class cronTriggerClass;
259+
Class<?> cronTriggerClass;
260260
Method jobKeyMethod;
261261
try {
262262
cronTriggerClass = getClass().getClassLoader().loadClass("org.quartz.impl.triggers.CronTriggerImpl");

spring-context/src/test/java/org/springframework/scripting/groovy/GroovyAspectTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ public class GroovyAspectTests {
3535

3636
@Test
3737
public void testManualGroovyBeanWithUnconditionalPointcut() throws Exception {
38-
3938
LogUserAdvice logAdvice = new LogUserAdvice();
4039

4140
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
4241
TestService target = (TestService) scriptFactory.getScriptedObject(new ResourceScriptSource(
4342
new ClassPathResource("GroovyServiceImpl.grv", getClass())));
4443

4544
testAdvice(new DefaultPointcutAdvisor(logAdvice), logAdvice, target, "GroovyServiceImpl");
46-
4745
}
4846

4947
@Test
@@ -61,7 +59,6 @@ public void testManualGroovyBeanWithStaticPointcut() throws Exception {
6159

6260
@Test
6361
public void testManualGroovyBeanWithDynamicPointcut() throws Exception {
64-
6562
LogUserAdvice logAdvice = new LogUserAdvice();
6663

6764
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
@@ -76,7 +73,6 @@ public void testManualGroovyBeanWithDynamicPointcut() throws Exception {
7673

7774
@Test
7875
public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass() throws Exception {
79-
8076
LogUserAdvice logAdvice = new LogUserAdvice();
8177

8278
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
@@ -91,6 +87,7 @@ public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass() throws Exc
9187

9288
private void testAdvice(Advisor advisor, LogUserAdvice logAdvice, TestService target, String message)
9389
throws Exception {
90+
9491
testAdvice(advisor, logAdvice, target, message, false);
9592
}
9693

0 commit comments

Comments
 (0)