11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2014 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package example .scannable ;
1818
19+ import java .util .Comparator ;
1920import java .util .List ;
2021import java .util .concurrent .Future ;
2122import javax .annotation .PostConstruct ;
2728import org .springframework .context .ApplicationEventPublisher ;
2829import org .springframework .context .ConfigurableApplicationContext ;
2930import org .springframework .context .MessageSource ;
30- import org .springframework .context .annotation .Lazy ;
3131import org .springframework .context .annotation .DependsOn ;
32+ import org .springframework .context .annotation .Lazy ;
3233import org .springframework .context .support .AbstractApplicationContext ;
3334import org .springframework .core .io .ResourceLoader ;
3435import org .springframework .core .io .support .ResourcePatternResolver ;
4344@ Service @ Lazy @ DependsOn ("myNamedComponent" )
4445public class FooServiceImpl implements FooService {
4546
47+ // Just to test ASM5's bytecode parsing of INVOKESPECIAL/STATIC on interfaces
48+ private static final Comparator <MessageBean > COMPARATOR_BY_MESSAGE = Comparator .comparing (MessageBean ::getMessage );
49+
50+
4651 @ Autowired private FooDao fooDao ;
4752
4853 @ Autowired public BeanFactory beanFactory ;
@@ -65,6 +70,7 @@ public class FooServiceImpl implements FooService {
6570
6671 private boolean initCalled = false ;
6772
73+
6874 @ PostConstruct
6975 private void init () {
7076 if (this .initCalled ) {
0 commit comments