GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

io.mcarle.sciurus.retry.RetryAspect   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 23
ccs 2
cts 2
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A retryAnnotated(Retry) 0 2 1
A anyMethod() 0 2 1
A executionOfAnyMethodAnnotatedWithRetry(ProceedingJoinPoint,Retry) 0 6 1
1 1
package io.mcarle.sciurus.retry;
2
3
import io.mcarle.sciurus.annotation.Retry;
4
import org.aspectj.lang.ProceedingJoinPoint;
5
import org.aspectj.lang.annotation.Around;
6
import org.aspectj.lang.annotation.Aspect;
7
import org.aspectj.lang.annotation.Pointcut;
8
9
@Aspect
10 1
public class RetryAspect {
11
12
    /**
13
     * Matches any execution of any method
14
     */
15
    @Pointcut("execution(* *(..))")
16
    void anyMethod() {
17
    }
18
19
    /**
20
     * Matches any method, which is annotated with {@link Retry}
21
     */
22
    @Pointcut("@annotation(retry)")
23
    void retryAnnotated(Retry retry) {
24
    }
25
26
    @Around(value = "anyMethod() && retryAnnotated(retry)", argNames = "joinPoint,retry")
27
    public Object executionOfAnyMethodAnnotatedWithRetry(
28
            ProceedingJoinPoint joinPoint,
29
            Retry retry
30
    ) throws Throwable {
31 1
        return RetryAspectHandler.executeAndRetry(joinPoint, retry);
32
    }
33
}
34