File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/com/github/_1c_syntax/bsl/languageserver/aop Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 26
26
import org .aspectj .lang .annotation .AfterThrowing ;
27
27
import org .aspectj .lang .annotation .Aspect ;
28
28
29
+ import javax .annotation .PostConstruct ;
29
30
import javax .annotation .PreDestroy ;
30
31
import java .util .concurrent .CompletableFuture ;
31
32
import java .util .concurrent .ExecutorService ;
38
39
@ NoArgsConstructor
39
40
public class SentryAspect {
40
41
41
- private final ExecutorService executorService = Executors .newCachedThreadPool ();
42
+ private ExecutorService executorService ;
43
+
44
+ @ PostConstruct
45
+ private void init () {
46
+ executorService = Executors .newCachedThreadPool ();
47
+ }
42
48
43
49
@ PreDestroy
44
- public void onDestroy () {
50
+ private void onDestroy () {
45
51
executorService .shutdown ();
46
52
}
47
53
You can’t perform that action at this time.
0 commit comments