| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | package io.mcarle.sciurus.monitor; |
|
| 27 | @Around(value = "anyMethod() && monitorAnnotated(monitor)", argNames = "joinPoint,monitor") |
||
| 28 | public Object startedAndExecutionOfAnyMethodAnnotatedWithMonitor( |
||
| 29 | ProceedingJoinPoint joinPoint, |
||
| 30 | Monitor monitor |
||
| 31 | ) throws Throwable { |
||
| 32 | 1 | if (Sciurus.isMonitorStarted()) { |
|
| 33 | 1 | return MonitorAspectHandler.executeAndMeasure(joinPoint); |
|
| 34 | } else { |
||
| 35 | 1 | return joinPoint.proceed(); |
|
| 36 | } |
||
| 40 |