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.

retryAnnotated(Retry)   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
crap 2
rs 10
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